This website works better with JavaScript.
Home
Explore
Register
Sign In
Fincer
/
openntpd-openbsd
mirror of
https://github.com/Fincer/openntpd-openbsd
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
61
Wiki
Activity
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
f17fc3744c
commit
bb62dcba0d
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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)
Write
Preview
Loading…
Cancel
Save