summaryrefslogtreecommitdiff
path: root/etc/rc.d/sshd
blob: 94cc554a9ed966a67cfe10adb78be89487d5aa4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/ksh
#
# $OpenBSD: sshd,v 1.6 2020/01/25 12:05:08 sthen Exp $

daemon="/usr/sbin/sshd"

. /etc/rc.d/rc.subr

pexp="sshd: ${daemon}${daemon_flags:+ ${daemon_flags}} \[listener\].*"

rc_reload() {
	${daemon} ${daemon_flags} -t && pkill -HUP -xf "${pexp}"
}

rc_cmd $1