Browse Source

Make sure new config is valid before SIGHUP'ing sshd, which would

otherwise just kill it.
ok ajacoutot@ djm@ pirofti@, quite some time ago
OPENBSD_5_3
halex 11 years ago
parent
commit
e03b25c53f
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/etc/rc.d/sshd

+ 5
- 1
src/etc/rc.d/sshd View File

@ -1,9 +1,13 @@
#!/bin/sh #!/bin/sh
# #
# $OpenBSD: sshd,v 1.1 2011/07/06 18:55:36 robert Exp $
# $OpenBSD: sshd,v 1.2 2013/02/05 00:26:31 halex Exp $
daemon="/usr/sbin/sshd" daemon="/usr/sbin/sshd"
. /etc/rc.d/rc.subr . /etc/rc.d/rc.subr
rc_reload() {
${daemon} ${daemon_flags} -t && pkill -HUP -f "^${pexp}"
}
rc_cmd $1 rc_cmd $1

Loading…
Cancel
Save