CRON job runs, but doesn't perform the task
This is on Suse (SLES10sp2)
I logged in as root and created a cron job to restart a service every 5 minutes: */5 * * * * rc(servicename) restart <parameters> if I turn on logging by adding this line, I see the log file being created and an entry appended every minute, but the service never restarts: * * * * * date >> /tmp/cron_test.txt What am I missing?? Thx DG |
IIRC, suse uses rc<service> to somehow alias to /etc/init.d/<service>.
Just use the fully qualified path in your cronjob. --- P.S. What service are you restarting every 5 minutes..? |
Doh! Thanks, that did it. I'm (obviously) new to Linux, moving there from another platform. The service being restarted is a web font-end for Tomcat-- we are doing some testing and it's easier to have it restart itself when we break it....
:^) Thanks! DG |
All times are GMT -5. The time now is 07:33 AM. |