Off-Topic > Off-Topic - Tiny Tux's Corner

How do I start and stop the crond process ?

(1/1)

remus:
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: ---$ sudo find / -name crond
/etc/init.d/services/crond
/usr/sbin/crond

--- End code ---

/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)
--- End quote ---
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)
--- End quote ---


Any suggestions and ideas welcome :)

Juanito:

--- Code: ---$ sudo /etc/init.d/services/crond stop
--- End code ---
..works for me

remus:

--- Quote from: Juanito on November 06, 2017, 10:37:10 PM ---
--- Code: ---$ sudo /etc/init.d/services/crond stop
--- End code ---
..works for me

--- End quote ---

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

Thanks Juanito

Navigation

[0] Message Index

Go to full version