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?
Yast - System - runlevel editor. The ‘service’ should be there, you can activate it, so that it starts at boot time.
> 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…
DenverD (Linux Counter 282315)
posted via NNTP w/TBird 184.108.40.206 | KDE 3.5.7 | openSUSE 10.3
220.127.116.11-0.4-default SMP i686
AMD Athlon 1 GB RAM | GeForce FX 5500 | ASRock K8Upgrade-760GX |
CMedia 9761 AC’97 Audio
Thanks DD. I missed that.
@mox88: please post output of:
su -c 'crontab -l'
It would be good if you let us know what the service is, it could be set in some config files, and those do not always live in the same places.