Browse Source

Remove 'status', because 'check' is what is used internally and we don't

need two functions doing the same thing, and also allow check to run as
non-root.
OPENBSD_4_9
robert 14 years ago
parent
commit
bb62dcba0d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/etc/rc.d/rc.subr

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

@ -24,12 +24,12 @@ rc_stop() {
}
rc_cmd() {
[ `id -u` -eq 0 ] || rc_err "$0: need root privileges"
[ `id -u` -eq 0 -o X"$1" = "Xcheck" ] || rc_err "$0: need root privileges"
[ -n "$daemon" ] || rc_err "$0: daemon is not set"
[ -n "$pexp" ] || pexp="$daemon${daemon_flags:+ $daemon_flags}"
case "$1" in
check|status)
check)
rc_check
;;
start)


Loading…
Cancel
Save