Your message dated Sun, 15 May 2011 01:17:23 -0500
with message-id <20110515061723.GA30156@elie>
and subject line Re: [start-stop-daemon --make-pidfile --pidfile 
/var/run/ssh2.pid] error on pid number in file
has caused the Debian Bug report #626773,
regarding [start-stop-daemon --make-pidfile --pidfile /var/run/ssh2.pid] error 
on pid number in file
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
626773: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=626773
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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] --
    ---------------------------------------



--- End Message ---
--- Begin Message ---
Hi Jean-Marc,

LACROIX Jean Marc wrote:

[...]
> start-stop-daemon --start --verbose --make-pidfile --quiet --oknodo
>       --pidfile /var/run/sshd1.pid --exec /usr/sbin/sshd -- -f
>       /etc/ssh/sshd_config
[...]
> 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,
[...]
> Second, in the /var/run/sshd1.pid , the pid is bad

>From sshd(8);

 /var/run/sshd.pid
        Contains the process ID of the sshd listening for connections
        (if there are several daemons running concurrently for
        different ports, this contains the process ID of the one
        started last).  The content of this file is not sensitive; it
        can be world-readable.

Perhaps you were probably looking for "sshd -D".  If you have ideas
for improving the explanation of this (relationship of --make-pidfile
to programs that daemonize and make their own pidfile) in the
start-stop-daemon documentation, I imagine that would be quite
welcome.

Thanks and hope that helps,
Jonathan


--- End Message ---

Reply via email to