Tiny Core Linux

Off-Topic => Off-Topic - Tiny Tux's Corner => Topic started by: remus on November 06, 2017, 09:51:38 PM

Title: How do I start and stop the crond process ?
Post by: remus on November 06, 2017, 09:51:38 PM
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 :)

Title: Re: How do I start and stop the crond process ?
Post by: Juanito on November 06, 2017, 10:37:10 PM
Code: [Select]
$ sudo /etc/init.d/services/crond stop..works for me
Title: Re: How do I start and stop the crond process ?
Post by: remus on November 07, 2017, 02: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