diff options
-rw-r--r-- | usr.sbin/rcctl/rcctl.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/rcctl/rcctl.sh b/usr.sbin/rcctl/rcctl.sh index ecd22c0b94e..40c0be6363c 100644 --- a/usr.sbin/rcctl/rcctl.sh +++ b/usr.sbin/rcctl/rcctl.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: rcctl.sh,v 1.89 2016/03/27 13:06:00 ajacoutot Exp $ +# $OpenBSD: rcctl.sh,v 1.90 2016/03/27 13:11:33 ajacoutot Exp $ # # Copyright (c) 2014, 2015 Antoine Jacoutot <ajacoutot@openbsd.org> # Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -25,11 +25,13 @@ FUNCS_ONLY=1 . /etc/rc.d/rc.subr _rc_parse_conf +echo $_rc_actions + usage() { _rc_err \ "usage: rcctl get|getdef|set service | daemon [variable [arguments]] - rcctl [-df] start|stop|restart|reload|check daemon ... + rcctl [-df] $(echo ${_rc_actions} | tr "[:blank:]" "|") daemon ... rcctl disable|enable|order [daemon ...] rcctl ls all|faulty|off|on|started|stopped" } |