diff options
author | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2022-08-29 19:14:26 +0000 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2022-08-29 19:14:26 +0000 |
commit | 6419cedde357c1a4aeedc0e08439ab150431e38c (patch) | |
tree | a9205fbd75af38c44eafba880128a35b3fe11e77 /etc/rc.d/sshd | |
parent | 9338abe157eda7cb842acfc98b6677fc9ff01a3a (diff) |
Use rc_configtest.
Diffstat (limited to 'etc/rc.d/sshd')
-rw-r--r-- | etc/rc.d/sshd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc.d/sshd b/etc/rc.d/sshd index 94cc554a9ed..ac726779a65 100644 --- a/etc/rc.d/sshd +++ b/etc/rc.d/sshd @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: sshd,v 1.6 2020/01/25 12:05:08 sthen Exp $ +# $OpenBSD: sshd,v 1.7 2022/08/29 19:14:25 ajacoutot Exp $ daemon="/usr/sbin/sshd" @@ -8,8 +8,8 @@ daemon="/usr/sbin/sshd" pexp="sshd: ${daemon}${daemon_flags:+ ${daemon_flags}} \[listener\].*" -rc_reload() { - ${daemon} ${daemon_flags} -t && pkill -HUP -xf "${pexp}" +rc_configtest() { + ${daemon} ${daemon_flags} -t } rc_cmd $1 |