From: kn Date: Sun, 29 Sep 2024 14:36:13 +0000 (+0000) Subject: sync synopsis and usage, sort commands, fix their spacing X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4f37b6d8348814d18455d660970182911f6f21f8;p=openbsd sync synopsis and usage, sort commands, fix their spacing OK input lucas --- diff --git a/etc/rc.d/rc.subr b/etc/rc.d/rc.subr index 1f872f0ebc8..d2e8fb0d4a5 100644 --- a/etc/rc.d/rc.subr +++ b/etc/rc.d/rc.subr @@ -1,4 +1,4 @@ -# $OpenBSD: rc.subr,v 1.162 2024/01/17 08:26:06 ajacoutot Exp $ +# $OpenBSD: rc.subr,v 1.163 2024/09/29 14:36:13 kn Exp $ # # Copyright (c) 2010, 2011, 2014-2022 Antoine Jacoutot # Copyright (c) 2010, 2011 Ingo Schwarze @@ -16,7 +16,7 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -_rc_actions="start stop restart reload check configtest" +_rc_actions="check configtest reload restart start stop" readonly _rc_actions _rc_check_name() { diff --git a/usr.sbin/rcctl/rcctl.8 b/usr.sbin/rcctl/rcctl.8 index 63e191a4ae6..19551fa4ff1 100644 --- a/usr.sbin/rcctl/rcctl.8 +++ b/usr.sbin/rcctl/rcctl.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: rcctl.8,v 1.45 2024/05/05 08:16:45 ajacoutot Exp $ +.\" $OpenBSD: rcctl.8,v 1.46 2024/09/29 14:36:13 kn Exp $ .\" .\" Copyright (c) 2014 Antoine Jacoutot .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: May 5 2024 $ +.Dd $Mdocdate: September 29 2024 $ .Dt RCCTL 8 .Os .Sh NAME @@ -23,7 +23,7 @@ .Sh SYNOPSIS .Nm rcctl .Cm get Ns | Ns Cm getdef Ns | Ns Cm set -.Ar service | daemon Op Ar variable Op Ar argument ... +.Ar daemon Ns | Ns Ar service Op Ar variable Op Ar argument ... .Nm rcctl .Op Fl df .Sm off diff --git a/usr.sbin/rcctl/rcctl.sh b/usr.sbin/rcctl/rcctl.sh index fddd8d777ca..ed81b5951d9 100644 --- a/usr.sbin/rcctl/rcctl.sh +++ b/usr.sbin/rcctl/rcctl.sh @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: rcctl.sh,v 1.119 2024/07/08 14:47:42 ajacoutot Exp $ +# $OpenBSD: rcctl.sh,v 1.120 2024/09/29 14:36:13 kn Exp $ # # Copyright (c) 2014, 2015-2022 Antoine Jacoutot # Copyright (c) 2014 Ingo Schwarze @@ -29,10 +29,10 @@ _rc_parse_conf usage() { local _a _i - for _i in ${_rc_actions}; do _a="$(echo -n ${_i}${_a:+|${_a}})"; done + for _i in ${_rc_actions}; do _a=${_a:+${_a}|}$_i; done _rc_err \ - "usage: rcctl get|getdef|set service | daemon [variable [argument ...]] + "usage: rcctl get|getdef|set daemon|service [variable [argument ...]] rcctl [-df] ${_a} daemon ... rcctl disable|enable|order [daemon ...] rcctl ls all|failed|off|on|rogue|started|stopped"