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@
-.\" $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>
.\"
.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
#!/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>
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()