summaryrefslogtreecommitdiff
path: root/usr.sbin/rcctl
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2016-03-27 13:11:34 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2016-03-27 13:11:34 +0000
commit2b60a896eb269ac33cd29790e4ebd869d25e5f69 (patch)
tree221a89a639943608a06ea853f4c6c7616d046ade /usr.sbin/rcctl
parent892e6322c9a356a05f41efd58fff24dff11a71fd (diff)
Compute "action" from the _rc_actions variable.
Diffstat (limited to 'usr.sbin/rcctl')
-rw-r--r--usr.sbin/rcctl/rcctl.sh6
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"
}