For some strange reason, the cron job i set isn't performanning the time i requested.
30 * * * * /etc/rc.d/init.d/httpd restart
30 * * * * /etc/rc.d/init.d/named restart
Anyone know what I done wrong??
ffeingol
01-22-2002, 03:16 PM
Well your syntax looks correct. Do you really want to restart Apache and named once an hour?
Check if your crond process is running.
If it's a linux box, you can also check /var/log/cron
Frank
zupanm
01-22-2002, 04:35 PM
is that being run my user root? if not that could be a problem also
priyadi
01-22-2002, 04:47 PM
I think it is better if you restart named first, and then httpd 5 minutes later. Some httpd.conf configuration requires DNS lookup, so in your case, if DNS is still down when your cron is starting httpd, then httpd won't get started properly.
bombino
01-22-2002, 07:13 PM
Why on earth do you want to restart Apache that often? (If you don't mind me asking)