Page 1 of 1

cron tab not work

Posted: Thu Oct 29, 2009 10:37 pm
by mneese
Using the plesk 9.2.3 interface, i have entered a new cron job for "apache"...

I have to restart apache seems like evry 2-3 on my vps, so used the plesk interface for new cron job...

Code: Select all

0 0,3,6,9,12,15,18,21 * * * /usr/sbin/apachectl -k graceful-stop
I got the message it had been saved, and it shows correctly on the apache cron list of commands, but it has not worked yet. It has been over 6 hours since I have entered this...I have restarted crond once from the command line and also once through the plesk vistoozzo interface...

Should this possibly be entered in "root" cron tabs instead of "apache"?

Any thoughts on this...

Re: cron tab not work

Posted: Fri Oct 30, 2009 6:30 am
by scott
Yup, you would want that in the root crontab, since the apache user doesnt have the rights to restart the daemon

Re: cron tab not work

Posted: Fri Oct 30, 2009 12:31 pm
by mneese
thanks...works fine with the cron entry for "root"....