First, check your cron log (/var/log/cron on my systems) to make sure it's actually trying to do that.
Cron should send any output (errors or otherwise) to the email address associated with that crontab (root for system, u...@localhost for others, or you can set it with MAILTO). If nothing else, try 25 16 * * * /etc/init.d/backuppc start >> /tmp/backuppc.restart.log And check the /tmp/backuppc.restart.log file to see if there are any errors. If the file doesn't exist after the next expected runtime, the job didn't run. It may be something as simple as a typo elsewhere in the crontab preventing cron from "seeing" that job. Bill Anderson Puryear Information Technology, LLC 225-706-8414 x116 http://www.puryear-it.com -----Original Message----- From: mox [mailto:[email protected]] Sent: Thursday, May 27, 2010 3:37 AM To: [email protected] Subject: [BackupPC-users] restart automatically a service Hello I have a box Suse 11.1 with a service that (I don't know why) every day stop at the same time. I'm finding why it come to a halt but in the meantime I would like restart it automatically. As root I insert in crontab the line: 25 16 * * * /etc/init.d/backuppc start But it don't' works If I launch manually /etc/init.d/backuppc start (or stop) it works! What I'am wrong? How I can automatically restart the service? Thanks :) +---------------------------------------------------------------------- |This was sent by [email protected] via Backup Central. |Forward SPAM to [email protected]. +---------------------------------------------------------------------- ------------------------------------------------------------------------------ _______________________________________________ BackupPC-users mailing list [email protected] List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
