Browse Source

Fix base rc.d scripts after the recent rc.subr change.

ok halex@
OPENBSD_5_8
ajacoutot 9 years ago
parent
commit
41bd3eb188
5 changed files with 10 additions and 8 deletions
  1. +2
    -1
      src/etc/rc.d/amd
  2. +2
    -2
      src/etc/rc.d/spamd
  3. +2
    -2
      src/etc/rc.d/sshd
  4. +2
    -1
      src/etc/rc.d/tftpproxy
  5. +2
    -2
      src/etc/rc.d/ypldap

+ 2
- 1
src/etc/rc.d/amd View File

@ -1,11 +1,12 @@
#!/bin/sh
#
# $OpenBSD: amd,v 1.6 2013/09/01 15:02:35 ajacoutot Exp $
# $OpenBSD: amd,v 1.7 2015/07/15 13:50:54 ajacoutot Exp $
daemon="/usr/sbin/amd"
. /etc/rc.d/rc.subr
pexp="${daemon}.*"
rc_reload=NO
rc_stop=NO


+ 2
- 2
src/etc/rc.d/spamd View File

@ -1,12 +1,12 @@
#!/bin/sh
#
# $OpenBSD: spamd,v 1.6 2014/07/20 08:37:07 rpe Exp $
# $OpenBSD: spamd,v 1.7 2015/07/15 13:50:54 ajacoutot Exp $
daemon="/usr/libexec/spamd"
. /etc/rc.d/rc.subr
pexp="spamd: \[priv\]"
pexp="spamd: \[priv\].*"
rc_reload=NO
rc_pre() {


+ 2
- 2
src/etc/rc.d/sshd View File

@ -1,13 +1,13 @@
#!/bin/sh
#
# $OpenBSD: sshd,v 1.2 2013/02/05 00:26:31 halex Exp $
# $OpenBSD: sshd,v 1.3 2015/07/15 13:50:54 ajacoutot Exp $
daemon="/usr/sbin/sshd"
. /etc/rc.d/rc.subr
rc_reload() {
${daemon} ${daemon_flags} -t && pkill -HUP -f "^${pexp}"
${daemon} ${daemon_flags} -t && pkill -HUP -xf "${pexp}"
}
rc_cmd $1

+ 2
- 1
src/etc/rc.d/tftpproxy View File

@ -1,11 +1,12 @@
#!/bin/sh
#
# $OpenBSD: tftpproxy,v 1.1 2012/08/20 12:37:53 dlg Exp $
# $OpenBSD: tftpproxy,v 1.2 2015/07/15 13:50:54 ajacoutot Exp $
daemon="/usr/sbin/tftp-proxy"
. /etc/rc.d/rc.subr
pexp="tftp-proxy: privproc"
rc_reload=NO
rc_cmd $1

+ 2
- 2
src/etc/rc.d/ypldap View File

@ -1,11 +1,11 @@
#!/bin/sh
#
# $OpenBSD: ypldap,v 1.2 2011/10/13 07:54:06 ajacoutot Exp $
# $OpenBSD: ypldap,v 1.3 2015/07/15 13:50:54 ajacoutot Exp $
daemon="/usr/sbin/ypldap"
. /etc/rc.d/rc.subr
pexp="ypldap: ldap client"
pexp="ypldap: ldap client.*"
rc_cmd $1

Loading…
Cancel
Save