summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rcctl
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2015-10-06 18:46:05 +0000
committerschwarze <schwarze@openbsd.org>2015-10-06 18:46:05 +0000
commitaa7681c9e54121b226dc747fb5ced23a510f25d9 (patch)
tree5500de7772c831cd0a2ac98cfea71b2a6be13baf /usr.sbin/rcctl
parentuse ellipsis for arguments that can be repeated; (diff)
downloadwireguard-openbsd-aa7681c9e54121b226dc747fb5ced23a510f25d9.tar.xz
wireguard-openbsd-aa7681c9e54121b226dc747fb5ced23a510f25d9.zip
With growing functionality, the synopsis became long and confusing.
The syntax of some subcommands has almost nothing in common with the syntax of others. So split the synopsis to make it more readable. "if you feel it helps, go for it" jmc@ ajacoutot@
Diffstat (limited to 'usr.sbin/rcctl')
-rw-r--r--usr.sbin/rcctl/rcctl.816
-rw-r--r--usr.sbin/rcctl/rcctl.sh9
2 files changed, 17 insertions, 8 deletions
diff --git a/usr.sbin/rcctl/rcctl.8 b/usr.sbin/rcctl/rcctl.8
index b14f1e3bd5a..78f6d4611cd 100644
--- a/usr.sbin/rcctl/rcctl.8
+++ b/usr.sbin/rcctl/rcctl.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: rcctl.8,v 1.23 2015/10/06 18:35:55 schwarze Exp $
+.\" $OpenBSD: rcctl.8,v 1.24 2015/10/06 18:46:05 schwarze Exp $
.\"
.\" Copyright (c) 2014 Antoine Jacoutot <ajacoutot@openbsd.org>
.\"
@@ -22,11 +22,17 @@
.Nd configure and control daemons and services
.Sh SYNOPSIS
.Nm rcctl
+.Cm get Ns | Ns Cm getdef Ns | Ns Cm set
+.Ar service | daemon Op Ar variable Op Ar arguments
+.Nm rcctl
.Op Fl df
-.Sm off
-.Ar action | Cm get | getdef | ls | order | set
-.Sm on
-.Op Ar service | daemon Oo Ar variable Oo Ar arguments Oc Oc | Ar daemons | lsarg
+.Ar action daemon ...
+.Nm rcctl
+.Cm order
+.Op Ar daemon ...
+.Nm rcctl
+.Cm ls
+.Ar lsarg
.Sh DESCRIPTION
The
.Nm
diff --git a/usr.sbin/rcctl/rcctl.sh b/usr.sbin/rcctl/rcctl.sh
index 502fefee404..73ad2f0751d 100644
--- a/usr.sbin/rcctl/rcctl.sh
+++ b/usr.sbin/rcctl/rcctl.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $OpenBSD: rcctl.sh,v 1.81 2015/10/04 13:38:11 ajacoutot Exp $
+# $OpenBSD: rcctl.sh,v 1.82 2015/10/06 18:46:05 schwarze Exp $
#
# Copyright (c) 2014, 2015 Antoine Jacoutot <ajacoutot@openbsd.org>
# Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -28,8 +28,11 @@ _rc_parse_conf
usage()
{
- _rc_err "usage: ${0##*/} [-df] action|get|getdef|ls|order|set
- [service | daemon [variable [arguments]] | daemons | lsarg]"
+ _rc_err \
+ "usage: rcctl get|getdef|set service | daemon [variable [arguments]]
+ rcctl [-df] action daemon ...
+ rcctl order [daemon ...]
+ rcctl ls lsarg"
}
needs_root()