[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to deinstall not-running daemons

On Sun, Aug 13, 2000 at 07:43:44PM +0200, Bernd Eckenfels <lists@lina.inka.de> spake forth:
> How do i do this? Unfortunatelly I havbe a daemon which dont write a pid
> file and which can't be run as daemon. So i have to start it with "daemon &"
> and killing it by start-stop-daemon --exec daemon  will produce an error
> code if the daemon was not running or if the daemon can't be stoped.. dont
> know how to detect which of both is the problem. Never seen a init script
> which did that right, even the one in the policy manual isbroken.

You may find the following start-stop-daemon options useful, then:
--background, --pidfile /var/run/foo.pid, --make-pidfile

Mike Markley <mike@markley.org>
PGP: 0xA9592D4D 62 A7 11 E2 23 AD 4F 57  27 05 1A 76 56 92 D5 F6
GPG: 0x3B047084 7FC7 0DC0 EF31 DF83 7313  FE2B 77A8 F36A 3B04 7084

You Earth people glorified organized violence for forty centuries.  But
you imprison those who employ it privately.
- Spock, "Dagger of the Mind", stardate 2715.1

Reply to: