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 ]
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
# 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
# /etc/init.d/ssh stop * Stopping OpenBSD Secure Shell server sshd [ OK ]
Pf
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