/etc/init.d/fso-gpsd pid-file off by one

Sascha Wessel wessel at nefkom.net
Mon Dec 15 17:16:41 CET 2008


Hi,


On Mon, Dec 15, 2008 at 04:28:45PM +0100, Joachim Ott wrote:
> Could it be that the PID-file is written before the fork() rather than after
> it?

fso-gpsd forks itself to the background.

> Anyway, there can be only one fso-gpsd running, no PID-file needs to be
> created and a simple "killall -q fso-gpsd" is sufficient to terminate it.

There can be more than one.

For a working example, see [1] or [2].


Greetings,
Sascha


http://git.freesmartphone.org/?p=fso-gpsd.git;a=blob;f=init-fso-gpsd
http://git.debian.org/?p=pkg-fso/fso-gpsd.git;a=blob;f=debian/fso-gpsd.init




More information about the support mailing list