Package: dpkg
Version: 1.14.31

Debian Lenny distribution

When launching start-stop-daemon with -pidfile and  --pidfile options
in order to create a dedicated pid file, the pid in the file is not
correct, and of course it is not possible later to destroy process
when launching --stop option.

Consider following test ....

admlocal@srv-dhcp-1:~$ ls -altr /var/run/ssh*
total 2
drwxr-xr-x 2 root root 1024 jan 14  2009 .
drwxr-xr-x 5 root root 1024 mai 15 07:46 ..


start-stop-daemon --start --verbose --make-pidfile --quiet --oknodo --pidfile /var/run/sshd1.pid --exec /usr/sbin/sshd -- -f /etc/ssh/sshd_config

After launching, ....

srv-dhcp-1:~# ps auxww |grep sshd
root 401 0.0 0.0 5232 956 ? Ss 07:49 0:00 /usr/sbin/sshd -f /etc/ssh/sshd_config
root       408  0.0  0.0   1720   516 console  S+   07:51   0:00 grep sshd

that is ok, but .....

srv-dhcp-1:~# ls -altr /var/run/ssh*pid
-rw-r--r-- 1 root root 4 May 15 07:49 /var/run/sshd1.pid
-rw-r--r-- 1 root root 4 May 15 07:49 /var/run/sshd.pid
srv-dhcp-1:~# cat /var/run/sshd.pid
401
srv-dhcp-1:~# cat /var/run/sshd1.pid
400

First , there is 2 files instead only one, and in the documentation, when using -make-pidfile , it is assume that the pid file is defined by -pidfile option.

Second, in the /var/run/sshd1.pid , the pid is bad

Expected result :

Acoording man documentation, only one file must be created with correct
pid file


Many thank in advance to correct it

--
--------------------------------------
 -- Jean-Marc LACROIX                 --
  -- mailto : [email protected] --
    ---------------------------------------



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to