[Aims] [Bug 1390012] Re: "/etc/init.d/ssh stop" does not stop ssh server processes

Jan Groenewald jan.groenewald at gmail.com
Thu Nov 6 16:55:20 UTC 2014


Bad example in previous post; here it is better:

0 root at kontiki:~#ps axuw|grep sbin/sshd
root     32302  0.0  0.0  61364  3052 ?        Ss   *18:51*   0:00
/usr/sbin/sshd -D
root     32310  0.0  0.0   8864   648 pts/9    S+   18:53   0:00 grep
--color=auto sbin/sshd
0 root at kontiki:~#date
Thu Nov  6 *18:53*:34 SAST 2014
0 root at kontiki:~#/etc/init.d/ssh restart # doesn't work
1 root at kontiki:~#ps axuw|grep sbin/sshd
root     32302  0.0  0.0  61364  3052 ?        Ss   *18:51  * 0:00
/usr/sbin/sshd -D
root     32320  0.0  0.0   8864   652 pts/9    S+   18:53   0:00 grep
--color=auto sbin/sshd
0 root at kontiki:~#date
Thu Nov  6 *18:53*:44 SAST 2014
0 root at kontiki:~#restart ssh # works
ssh start/running, process 32325
0 root at kontiki:~#date
Thu Nov  6 *18:53*:52 SAST 2014
0 root at kontiki:~#ps axuw|grep sbin/sshd
root     32325  0.0  0.0  61364  3048 ?        Ss   *18:53*   0:00
/usr/sbin/sshd -D
root     32329  0.0  0.0   8864   652 pts/9    S+   18:53   0:00 grep
--color=auto sbin/sshd
0 root at kontiki:~#


On 6 November 2014 18:38, Jan Groenewald <jan at aims.ac.za> wrote:

> Server and desktop 14.04:
>
> 0 root at kontiki:~#ps auxw|grep sshd:
> root      7361  0.0  0.1 111844  4072 ?        Ss   Nov03   0:00 sshd: jan
> [priv]
> jan       7537  0.0  0.0 111844  2076 ?        S    Nov03   0:00 sshd:
> jan at pts/9
> root     32177  0.0  0.0   8864   652 pts/9    S+   18:37   0:00 grep
> --color=auto sshd:
> 0 root at kontiki:~#/etc/init.d/ssh restart
> 1 root at kontiki:~#ps auxw|grep sshd:
> root      7361  0.0  0.1 111844  4072 ?        Ss   Nov03   0:00 sshd: jan
> [priv]
> jan       7537  0.0  0.0 111844  2076 ?        S    Nov03   0:00 sshd:
> jan at pts/9
> root     32186  0.0  0.0   8864   652 pts/9    S+   18:37   0:00 grep
> --color=auto sshd:
> 0 root at kontiki:~#date
> Thu Nov  6 18:37:17 SAST 2014
> 0 root at kontiki:~#/etc/init.d/ssh stop
> 0 root at kontiki:~#ps axuw|grep sshd
> root      1513  0.0  0.0  61364  2796 ?        Ss   Nov02   0:00
> /usr/sbin/sshd -D
> root      7361  0.0  0.1 111844  4072 ?        Ss   Nov03   0:00 sshd: jan
> [priv]
> jan       7537  0.0  0.0 111844  2076 ?        S    Nov03   0:00 sshd:
> jan at pts/9
> root     32198  0.0  0.0   8868   652 pts/9    R+   18:37   0:00 grep
> --color=auto sshd
> 0 root at kontiki:~#lsb_release -d
> Description:    Ubuntu 14.04.1 LTS
> 0 root at kontiki:~#
>
>
>
> On 6 November 2014 18:36, Jan Groenewald <jan at aims.ac.za> wrote:
>
>> 14.04 server installs.
>>
>>
>> On 6 November 2014 18:27, Brian Murray <brian at ubuntu.com> wrote:
>>
>>> What release did you notice this on? It worked fine for me on Vivid.
>>>
>>> [  8:26AM ]  [ bdmurray at impulse:~ ]
>>>  $ sudo /etc/init.d/ssh stop
>>> ssh stop/waiting
>>> [  8:27AM ]  [ bdmurray at impulse:~ ]
>>>  $ ssh localhost
>>> ssh: connect to host localhost port 22: Connection refused
>>>
>>>
>>> ** Changed in: openssh (Ubuntu)
>>>        Status: Confirmed => Incomplete
>>>
>>> --
>>> You received this bug notification because you are a member of AIMS,
>>> which is subscribed to the bug report.
>>> https://bugs.launchpad.net/bugs/1390012
>>>
>>> Title:
>>>   "/etc/init.d/ssh stop" does not stop ssh server processes
>>>
>>> Status in “openssh” package in Ubuntu:
>>>   Incomplete
>>>
>>> Bug description:
>>>   Running "/etc/init.d/ssh stop" does not result in ssh server being
>>>   stopped. Running "service ssh stop" works fine.
>>>
>>>   As a result, running "/etc/init.d/ssh restart" does not restart sshd
>>>   so new settings from sshd_config won't be loaded.
>>>
>>>   Using "service ssh restart" works fine, but ideally using the init
>>>   script should still work as long as it's still there.
>>>
>>> To manage notifications about this bug go to:
>>>
>>> https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1390012/+subscriptions
>>>
>>> --
>>> Mailing list: https://launchpad.net/~aims
>>> Post to     : aims at lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~aims
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>
>>
>>
>> --
>>   .~.
>>   /V\     Jan Groenewald
>>  /( )\    www.aims.ac.za
>>  ^^-^^
>>
>
>
>
> --
>   .~.
>   /V\     Jan Groenewald
>  /( )\    www.aims.ac.za
>  ^^-^^
>


-- 
  .~.
  /V\     Jan Groenewald
 /( )\    www.aims.ac.za
 ^^-^^

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/1390012

Title:
  "/etc/init.d/ssh stop" does not stop ssh server processes on 14.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1390012/+subscriptions



More information about the Ubuntu-server-bugs mailing list