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/service start
But it don’t’ works
If I launch manually /etc/init.d/service start (or stop) it works!
What I’am wrong? How I can automatically restart the service?
Knurpht wrote:
> Yast - System - runlevel editor. The ‘service’ should be there, you can
> activate it, so that it starts at boot time.
yes, but he said it stops running at the same time each day [have
another espresso! ]…which i guess means he has a cron (or
cron driven script) which is killing the service (and maybe the script
is not restarting it, or is sending an error)…
and, all he has to do is find that cron and stop it from killing the
service (or fix the script so it restarts as expected)…
i think a look at /var/log/messages around the time the service is
stopped will probably give some clues about what is going on…