summaryrefslogtreecommitdiff
path: root/etc/rc.d
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2020-01-22 13:14:52 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2020-01-22 13:14:52 +0000
commit9d328735c8816f380127767d4cf01cada1496bec (patch)
treeb3f1a13b335095f2a344ac1452471eb79ad83b28 /etc/rc.d
parent84189f22ce50a969a31053ce7440c7559b64679b (diff)
update pexp in rc.d/sshd to match the new setproctitle ('sshd: [listener]
1 of 10-100 startups'). "makes sense" deraadt@ Beware if you have multiple sshd processes (e.g. on different ports) and want to restart/stop just one - with the current proctitle there's no way to distinguish between these so rc.d/rcctl will match all of them.
Diffstat (limited to 'etc/rc.d')
-rw-r--r--etc/rc.d/sshd4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc.d/sshd b/etc/rc.d/sshd
index 75ea913e570..3c154f1e19b 100644
--- a/etc/rc.d/sshd
+++ b/etc/rc.d/sshd
@@ -1,11 +1,13 @@
#!/bin/ksh
#
-# $OpenBSD: sshd,v 1.4 2018/01/11 19:52:12 rpe Exp $
+# $OpenBSD: sshd,v 1.5 2020/01/22 13:14:51 sthen Exp $
daemon="/usr/sbin/sshd"
. /etc/rc.d/rc.subr
+pexp="sshd: \[listener\].*"
+
rc_reload() {
${daemon} ${daemon_flags} -t && pkill -HUP -xf "${pexp}"
}