Even better:

0 root@snapperkob:~#cat /var/run/sshd.pid
1820
0 root@snapperkob:~#/etc/init.d/ssh restart
1 root@snapperkob:~#cat /var/run/sshd.pid
1820
0 root@snapperkob:~#/etc/init.d/ssh stop
0 root@snapperkob:~#cat /var/run/sshd.pid
1820
0 root@snapperkob:~#stop ssh
ssh stop/waiting
0 root@snapperkob:~#cat /var/run/sshd.pid
cat: /var/run/sshd.pid: No such file or directory
1 root@snapperkob:~#start ssh
ssh start/running, process 6842
0 root@snapperkob:~#cat /var/run/sshd.pid
6842
0 root@snapperkob:~#


On 6 November 2014 18:55, Jan Groenewald <j...@aims.ac.za> wrote:

> Bad example in previous post; here it is better:
>
> 0 root@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@kontiki:~#date
> Thu Nov  6 *18:53*:34 SAST 2014
> 0 root@kontiki:~#/etc/init.d/ssh restart # doesn't work
> 1 root@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@kontiki:~#date
> Thu Nov  6 *18:53*:44 SAST 2014
> 0 root@kontiki:~#restart ssh # works
> ssh start/running, process 32325
> 0 root@kontiki:~#date
> Thu Nov  6 *18:53*:52 SAST 2014
> 0 root@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@kontiki:~#
>
>
> On 6 November 2014 18:38, Jan Groenewald <j...@aims.ac.za> wrote:
>
>> Server and desktop 14.04:
>>
>> 0 root@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@pts/9
>> root     32177  0.0  0.0   8864   652 pts/9    S+   18:37   0:00 grep
>> --color=auto sshd:
>> 0 root@kontiki:~#/etc/init.d/ssh restart
>> 1 root@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@pts/9
>> root     32186  0.0  0.0   8864   652 pts/9    S+   18:37   0:00 grep
>> --color=auto sshd:
>> 0 root@kontiki:~#date
>> Thu Nov  6 18:37:17 SAST 2014
>> 0 root@kontiki:~#/etc/init.d/ssh stop
>> 0 root@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@pts/9
>> root     32198  0.0  0.0   8868   652 pts/9    R+   18:37   0:00 grep
>> --color=auto sshd
>> 0 root@kontiki:~#lsb_release -d
>> Description:    Ubuntu 14.04.1 LTS
>> 0 root@kontiki:~#
>>
>>
>>
>> On 6 November 2014 18:36, Jan Groenewald <j...@aims.ac.za> wrote:
>>
>>> 14.04 server installs.
>>>
>>>
>>> On 6 November 2014 18:27, Brian Murray <br...@ubuntu.com> wrote:
>>>
>>>> What release did you notice this on? It worked fine for me on Vivid.
>>>>
>>>> [  8:26AM ]  [ bdmurray@impulse:~ ]
>>>>  $ sudo /etc/init.d/ssh stop
>>>> ssh stop/waiting
>>>> [  8:27AM ]  [ bdmurray@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     : a...@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
>  ^^-^^
>


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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to 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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to