use kill $(cat /var/run/sshd.pid) instead of killall sshd to
authorPeter Wagner <​tripolar@gmx.at>
Wed, 20 Oct 2010 11:35:23 +0000 (11:35 +0000)
committerPeter Wagner <​tripolar@gmx.at>
Wed, 20 Oct 2010 11:35:23 +0000 (11:35 +0000)
avoid that the init script and all sshd instances are killed
when sshd is restarted
thanks  matt

SVN-Revision: 23546

net/openssh/files/sshd.init

index d1a7536fe8cbe12bc6c4f1e1fd175eb6ff917513..ec76bb6ab578741d6c6ba76f5a5c51d90ba2ab2c 100644 (file)
@@ -21,5 +21,5 @@ start() {
 }
 
 stop() {
 }
 
 stop() {
-       killall sshd
+       kill $(cat /var/run/sshd.pid)
 }
 }