AXISHK
asked on
crontab to restart daemon
I have scheduled to restart my daemon at 14:30 daily but it doesn't start as expected. Manually restart the daemon with "/etc/rc.d/init.d/myforwar d restart" works fine. Any idea ? Do I make anything wrong ?
30 14 * * * root /etc/rc.d/init.d/myforward restart
30 14 * * * root /etc/rc.d/init.d/myforward
ASKER
Tks, is there any log to record whehter crontab has run or not ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Tks
It should read:
30 14 * * * /etc/rc.d/init.d/myforward
Plus, check that the paths are defined inside myforward. By default, cron does not source .bashrc or any other files in the home dir.
HTH,
Dan