Re: [BackupPC-users] restart automatically a service
2010-05-27 12:33:36
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, user@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:backuppc-forum AT backupcentral DOT com]
Sent: Thursday, May 27, 2010 3:37 AM
To: backuppc-users AT lists.sourceforge DOT net
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 diamond88 AT gmail DOT com via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------
------------------------------------------------------------------------------
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
|
|
|