"/etc/init.d/ssh stop" doesn't stop sshd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openssh (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Running "/etc/init.d/ssh stop" gives the following message, but doesn't successfully stop the sshd daemon from running--
jesse@cthulhu:~$ sudo /etc/init.d/ssh stop
* Stopping OpenBSD Secure Shell server sshd
...done.
jesse@cthulhu:~$
I believe this is because sshd was converted over to upstart, but the init script hasn't been fully cleaned up.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: openssh-server 1:5.3p1-3ubuntu4
ProcVersionSign
Uname: Linux 2.6.32-24-generic i686
Architecture: i386
Date: Thu Sep 9 12:33:34 2010
InstallationMedia: Ubuntu-
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: openssh
Hi Jesse, thanks for taking the time to report this as a bug.
Agreed, this is caused by the init script remaining. It has been kept there for running chroots, and as such, should probably be renamed or patched to print a message so that it is clear that it is for chroots and will not work most of the time. There may be other reasons for it not being renamed though.
Marking Confirmed.
Setting Importance to Low, as this will only affect users running the script directly, if users use 'service ssh stop' it should use the upstart job.