From: Peter Wagner <​tripolar@gmx.at> Date: Wed, 20 Oct 2010 11:35:23 +0000 (+0000) Subject: use kill $(cat /var/run/sshd.pid) instead of killall sshd to X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=02d97ead55fc9bfe35f9f8163c09535dafe69b18;hp=3d921a55ba442d8666d1f1c7e647260d48120b56 use kill $(cat /var/run/sshd.pid) instead of killall sshd to avoid that the init script and all sshd instances are killed when sshd is restarted thanks matt SVN-Revision: 23546 --- diff --git a/net/openssh/files/sshd.init b/net/openssh/files/sshd.init index d1a7536fe8..ec76bb6ab5 100644 --- a/net/openssh/files/sshd.init +++ b/net/openssh/files/sshd.init @@ -21,5 +21,5 @@ start() { } stop() { - killall sshd + kill $(cat /var/run/sshd.pid) }