1830657 Members
28704 Online
110015 Solutions
New Discussion

Re: Restarting Cron

 
Pat Matthews
New Member

Restarting Cron

How can I stop Cron and Restart it without rebooting the server?

Pat Matthews
pmatthews@systemationusa.com
7 REPLIES 7
AriesFR
Occasional Advisor

Re: Restarting Cron

Hi,

you type
/sbin/init.d/cron stop
then
/sbin/init.d/cron start

That should do it...

Jean-Charles
Oni koji znaju, cinu; Oni koji ne znaju, predavaju - Who can does ; who can't teaches - Croatian proverb.
harry d brown jr
Honored Contributor

Re: Restarting Cron

Easy,

kill it, and then from root type in cron.


live free or die
harry
Live Free or Die
Robin Wakefield
Honored Contributor

Re: Restarting Cron

Hi Pat,

I'd use:

/sbin/init.d/cron stop
/sbin/init.d/cron start

Rgds, Robin.
Thierry Poels_1
Honored Contributor

Re: Restarting Cron

hi,

/sbin/init.d/cron stop (or a plain kill)

/sbin/init.d/cron start


good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Pat Matthews
New Member

Re: Restarting Cron

Thanks a ton
harry d brown jr
Honored Contributor

Re: Restarting Cron

/sbin/init.d/cron does a kill, with nothing special about it.

live free or die
harry
Live Free or Die
James R. Ferguson
Acclaimed Contributor

Re: Restarting Cron

Hi Pat:

A general comment. In cases like this, where you are going to use the script (anyway) to restart the daemon, I prefer to use the script to kill. Then, in any case where there might be additional processing beyond a mere kill of a process, I'm covered and I don't have to "think". With command-line recall-and-edit this is so fast and easy.

Regards!

...JRF...