WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How do I start and stop the crond process ?  (Read 6151 times)

Offline remus

  • Sr. Member
  • ****
  • Posts: 371
How do I start and stop the crond process ?
« on: November 07, 2017, 12:51:38 AM »
Hi folks,

My server runs to cron jobs, one at 6am and the other at 10am.

The one running at 10am has been failing to run and generate logs for the last few days.

I am using mmonit to monitor a few process's and restart them if required, such as samba and sshd

I'd like to add crond to my list of monitored process's and restart it if it fails for any reason.

I've searched my microcore os and found crond in the following locations
Code: [Select]
$ sudo find / -name crond
/etc/init.d/services/crond
/usr/sbin/crond

/etc/init.d/services/crond contains code

and

/usr/sbin/crond seems to be a binary.

I've tried running
Quote
/etc/init.d/services/crond (start|stop|status)
and had no effect.
I used top to check the pid of crond and it remains running no mater what. I do however see a bunch of new process's for the commands I just tried e.g.
Quote
/etc/init.d/services/crond (start|stop|status)


Any suggestions and ideas welcome :)

Live long and prosper.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14794
Re: How do I start and stop the crond process ?
« Reply #1 on: November 07, 2017, 01:37:10 AM »
Code: [Select]
$ sudo /etc/init.d/services/crond stop..works for me

Offline remus

  • Sr. Member
  • ****
  • Posts: 371
Re: How do I start and stop the crond process ?
« Reply #2 on: November 07, 2017, 05:43:09 PM »
Code: [Select]
$ sudo /etc/init.d/services/crond stop..works for me

I swear I tried that yesterday, but I havn't slept in a few days  ::)

Thanks Juanito
Live long and prosper.