[Bug 590275] Re: ssh init script doesn't use the /etc/default/ssh file

Pierfrancesco Caci pf at caci.it
Sat Jul 17 15:26:00 BST 2010


Colin, I did more tests and here's another issue:

sshd is stopped, and the 2 config files have these contents:

# grep -v '#' /etc/default/ssh
SSHD_OPTS='-p 12345'
SSHD_OOM_ADJUST=-17

 # tail -1 /etc/init/ssh.conf
exec /usr/sbin/sshd -p 11210

# service ssh start
ssh start/running, process 30569

# ps ax | grep sshd
30569 ?        Ss     0:00 /usr/sbin/sshd -p 11210

# /etc/init.d/ssh start
 * Starting OpenBSD Secure Shell server sshd                                                   [ OK ]

# ps ax | grep sshd
30569 ?        Ss     0:00 /usr/sbin/sshd -p 11210

so far, this is the expected behaviour.  Now I stop again the daemon,
and start it again, but this time with the old style init script first

# /etc/init.d/ssh start
 * Starting OpenBSD Secure Shell server sshd                                                   [ OK ] 

# ps ax | grep sshd
31604 ?        Ss     0:00 /usr/sbin/sshd -p 12345

# service ssh start
ssh start/running, process 31614

# ps ax | grep sshd
31604 ?        Ss     0:00 /usr/sbin/sshd -p 12345
31614 ?        Ss     0:00 /usr/sbin/sshd -p 11210

Result: 2 daemons running, on different ports.

Also, the init script is no longer able to stop the daemon it started:

# service ssh stop
ssh stop/waiting

# ps ax | grep sshd
31604 ?        Ss     0:00 /usr/sbin/sshd -p 12345

# /etc/init.d/ssh stop
 * Stopping OpenBSD Secure Shell server sshd                                                   [ OK ] 

# ps ax | grep sshd
31604 ?        Ss     0:00 /usr/sbin/sshd -p 12345


Pf

-- 
ssh init script doesn't use the /etc/default/ssh file
https://bugs.launchpad.net/bugs/590275
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in ubuntu.



More information about the Ubuntu-server-bugs mailing list