cron tab not work

Community support for Plesk, CPanel, WebMin and others with insight from two of the founders of Plesk. Ask for help here! No question is too simple or complicated. :-)
mneese
Forum Regular
Forum Regular
Posts: 218
Joined: Thu Apr 23, 2009 12:08 pm

cron tab not work

Unread post 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...
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: cron tab not work

Unread post by scott »

Yup, you would want that in the root crontab, since the apache user doesnt have the rights to restart the daemon
mneese
Forum Regular
Forum Regular
Posts: 218
Joined: Thu Apr 23, 2009 12:08 pm

Re: cron tab not work

Unread post by mneese »

thanks...works fine with the cron entry for "root"....
Post Reply