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

Bug#43998: start-stop-daemon doesn't seem to work with some pidfiles



Package: dpkg
Version: 1.4.1.6

When start-stop-daemon is invoked with the --pidfile option and --start,
it doesn't seem to write the pid of the started process to the file if
the filename of the pidfile is /var/run/xdm.pid .It does if the filename
of the pidfile is /var/run/xdm-pid .

blib:/var# start-stop-daemon --start --verbose --pidfile /var/run/xdm.pid
--exec /usr/bin/X11/xdm
Starting /usr/bin/X11/xdm...
blib:/var# cat /var/run/xdm.pid
cat: /var/run/xdm.pid: No such file or directory

blib:/var# kill 3473
blib:/var# start-stop-daemon --start --verbose --pidfile /var/run/xdm-pid
--exec /usr/bin/X11/xdm
Starting /usr/bin/X11/xdm...
blib:/var# cat /var/run/xdm-pid
 3480
blib:/var# ps auxwww | grep xdm
root      3480  0.0  1.1  2460  920 ?        S    16:48   0:00
/usr/bin/X11/xdm
root      3484  0.0  0.5  1084  400 pts/4    S    16:48   0:00 grep xdm

I'm using kernel version 2.2.12 and libc 6 version 2.1.2.


Reply to: