Browse Source

Override each and every rc.d functions to be able to match on the user.

OPENBSD_6_0
ajacoutot 8 years ago
parent
commit
c466a80838
1 changed files with 13 additions and 1 deletions
  1. +13
    -1
      src/etc/rc.d/sndiod

+ 13
- 1
src/etc/rc.d/sndiod View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# #
# $OpenBSD: sndiod,v 1.2 2011/12/28 14:58:16 ajacoutot Exp $
# $OpenBSD: sndiod,v 1.3 2016/04/27 17:29:08 ajacoutot Exp $
daemon="/usr/bin/sndiod" daemon="/usr/bin/sndiod"
@ -8,4 +8,16 @@ daemon="/usr/bin/sndiod"
rc_reload=NO rc_reload=NO
rc_check() {
pgrep -T "${daemon_rtable}" -U _sndio -q -xf "${pexp}"
}
rc_reload() {
pkill -T "${daemon_rtable}" -U _sndio -HUP -xf "${pexp}"
}
rc_stop() {
pkill -T "${daemon_rtable}" -U _sndio -xf "${pexp}"
}
rc_cmd $1 rc_cmd $1

Loading…
Cancel
Save