OpenBSD CVS

CVS log for src/usr.sbin/rcctl/rcctl.8


[BACK] Up to [local] / src / usr.sbin / rcctl

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.45 / (download) - annotate - [select for diffs], Sun May 5 08:16:45 2024 UTC (3 weeks, 6 days ago) by ajacoutot
Branch: MAIN
CVS Tags: HEAD
Changes since 1.44: +4 -4 lines
Diff to previous 1.44 (colored)

Document "ls rogue" exit status.

Revision 1.44 / (download) - annotate - [select for diffs], Wed Mar 1 17:27:45 2023 UTC (15 months ago) by ajacoutot
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.43: +3 -4 lines
Diff to previous 1.43 (colored)

Bogus full stop.

Revision 1.43 / (download) - annotate - [select for diffs], Thu Dec 22 19:53:24 2022 UTC (17 months, 1 week ago) by kn
Branch: MAIN
Changes since 1.42: +7 -9 lines
Diff to previous 1.42 (colored)

Denote multiple arguments with 'arg ...' not 'args'

A few programs used the plural in their synopsis which doesn't read as
clear as the obvious triple-dot notation.

mdoc(7) .Ar defaults to "file ..." if no arguments are given and consistent
use of 'arg ...' matches that behaviour.

Cleanup a few markups of the same argument so the text keeps reading
naturally;  omit unhelpful parts like 'if optional arguments are given,
they are passed along' for tools like time(1) and timeout(1) that obviously
execute commands with whatever arguments where given -- just like doas(1)
which doesn't mention arguments in its DESCRIPTION in the first place.

For expr(1) the difference between 'expressions' and 'expression ...' is
crucial, as arguments must be passed as individual words.

Feedback millert jmc schwarze deraadt
OK jmc

Revision 1.42 / (download) - annotate - [select for diffs], Tue Sep 13 06:20:38 2022 UTC (20 months, 2 weeks ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.41: +4 -4 lines
Diff to previous 1.41 (colored)

document "configtest" in SYNOPSIS; from andrei
while here, sort SYNOPSIS at the behest of ajacoutot;

ok ajacoutot

Revision 1.41 / (download) - annotate - [select for diffs], Wed Jul 13 13:36:12 2022 UTC (22 months, 2 weeks ago) by ajacoutot
Branch: MAIN
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

Fix apmd_flags example.

Revision 1.40 / (download) - annotate - [select for diffs], Thu May 26 11:27:03 2022 UTC (2 years ago) by ajacoutot
Branch: MAIN
Changes since 1.39: +5 -3 lines
Diff to previous 1.39 (colored)

Introduce a new daemon_execdir variable for changing to a specified directory
before running rc_rcexec.

Based on an proposal from openbsd.tech at aisha.cc
ok robert@ abieber@

Revision 1.39 / (download) - annotate - [select for diffs], Fri Apr 1 10:13:35 2022 UTC (2 years, 2 months ago) by ajacoutot
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.38: +3 -2 lines
Diff to previous 1.38 (colored)

Add missing command in description.

from Matthew Martin

Revision 1.38 / (download) - annotate - [select for diffs], Sat Oct 23 08:19:27 2021 UTC (2 years, 7 months ago) by sthen
Branch: MAIN
Changes since 1.37: +5 -3 lines
Diff to previous 1.37 (colored)

add "rcctl ls rogue", to show daemons which are running but not set as
"enabled" in rc.conf.local.

naming suggesting from schwarze@, ok kn@ ajacoutot@

Revision 1.37 / (download) - annotate - [select for diffs], Sat Jun 26 18:02:48 2021 UTC (2 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.36: +9 -4 lines
Diff to previous 1.36 (colored)

make SYNOPSIS match usage; ok ajacoutot

Revision 1.36 / (download) - annotate - [select for diffs], Sat Feb 27 09:28:04 2021 UTC (3 years, 3 months ago) by ajacoutot
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.35: +4 -2 lines
Diff to previous 1.35 (colored)

Add logger(1) support for daemons that are logging to stdout/stderr (mostly from
the go ecosystem).
Properly handle failing daemon startup now that we have pipefail.

To take advantage of this new feature, just add foo_logger=facility to the
daemon rc.d(8) script or in rc.conf.local(8) or use rcctl:
rcctl set foo logger daemon.info

tweak for checking flags in rcctl(8) from martijn@
"this looks pretty good" deraadt@
ok sthen@

Revision 1.35 / (download) - annotate - [select for diffs], Thu Sep 20 12:24:14 2018 UTC (5 years, 8 months ago) by solene
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.34: +4 -3 lines
Diff to previous 1.34 (colored)

add missing explanation about daemon_variables removed when disabling a pkg
script

ok aja@ jca@

Revision 1.34 / (download) - annotate - [select for diffs], Mon Oct 10 15:22:26 2016 UTC (7 years, 7 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

improve .Bl -tag -width for -Tps mode;
patch from Jan Stary <hans at stare dot cz>;
"go ahead" jmc@

Revision 1.33 / (download) - annotate - [select for diffs], Sun Jun 19 10:54:20 2016 UTC (7 years, 11 months ago) by ajacoutot
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.32: +10 -2 lines
Diff to previous 1.32 (colored)

Implement rcctl get|getdef all.
With this and the previous 2 commits, we can move from constructs like:
$ for i in $(rcctl ls all); do rcctl get $i; done
to just:
$ rcctl get all
Shrinking the run by a factor of more than 3.5.

prodded by and discussed with reyk@ at BSDcan2016
ok robert@

Revision 1.32 / (download) - annotate - [select for diffs], Tue Apr 26 17:58:42 2016 UTC (8 years, 1 month ago) by ajacoutot
Branch: MAIN
Changes since 1.31: +3 -2 lines
Diff to previous 1.31 (colored)

Implement daemon_rtable support.
From Jiri B <jirib ! devio ! us>, thanks!

Revision 1.31 / (download) - annotate - [select for diffs], Fri Apr 1 08:18:57 2016 UTC (8 years, 2 months ago) by ajacoutot
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

Rename the 'faulty' list action to 'failed'; it clearer.

prodded by matthieu@
ok millert@ jung@ sthen@

Revision 1.30 / (download) - annotate - [select for diffs], Sat Jan 30 18:57:31 2016 UTC (8 years, 4 months ago) by ajacoutot
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

Actually order matters; I missed it when reviewing previous.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Jan 30 12:14:08 2016 UTC (8 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.28: +12 -1 lines
Diff to previous 1.28 (colored)

Explain how to run multiple copies of the same daemon;
triggered by a frequently asked question by Paolo Aglialoro on misc@;
using snmpd(8) on inet6(4) as an example suggested by sthen@;
tweaks and OK ajacoutot@.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Jan 29 23:53:08 2016 UTC (8 years, 4 months ago) by jmc
Branch: MAIN
Changes since 1.27: +4 -4 lines
Diff to previous 1.27 (colored)

whitespace fixes; ok ajacoutot

Revision 1.27 / (download) - annotate - [select for diffs], Fri Jan 29 20:14:08 2016 UTC (8 years, 4 months ago) by ajacoutot
Branch: MAIN
Changes since 1.26: +9 -8 lines
Diff to previous 1.26 (colored)

Use apmd instead of ntpd in the example since the later is on by default.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Oct 24 17:08:36 2015 UTC (8 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.25: +5 -5 lines
Diff to previous 1.25 (colored)

some minor tweaks; ok ajacoutot

Revision 1.25 / (download) - annotate - [select for diffs], Sat Oct 24 13:57:24 2015 UTC (8 years, 7 months ago) by ajacoutot
Branch: MAIN
Changes since 1.24: +8 -2 lines
Diff to previous 1.24 (colored)

"enable" and "disable" are here to stay now that they have a real added value
(possibility to pass several enable|disable daemons at once); so document them.
While here, add a check to make sure a service|daemon exists when running "order".

"Yay" and ok sthen@

Revision 1.24 / (download) - annotate - [select for diffs], Tue Oct 6 18:46:05 2015 UTC (8 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.23: +12 -6 lines
Diff to previous 1.23 (colored)

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@

Revision 1.23 / (download) - annotate - [select for diffs], Tue Oct 6 18:35:55 2015 UTC (8 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.22: +9 -11 lines
Diff to previous 1.22 (colored)

use ellipsis for arguments that can be repeated;
ok ajacoutot@ jmc@

Revision 1.22 / (download) - annotate - [select for diffs], Sun Oct 4 13:38:25 2015 UTC (8 years, 8 months ago) by ajacoutot
Branch: MAIN
Changes since 1.21: +5 -5 lines
Diff to previous 1.21 (colored)

Plural.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Jul 25 09:45:51 2015 UTC (8 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.20: +10 -11 lines
Diff to previous 1.20 (colored)

Use .Cm rather than .Ar for fixed strings passed as arguments (command
modifiers).  Patch from Michael Reed <m dot reed at mykolab dot com>,
tweaked by jmc@.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jul 15 05:51:08 2015 UTC (8 years, 10 months ago) by jmc
Branch: MAIN
Changes since 1.19: +4 -4 lines
Diff to previous 1.19 (colored)

tweak previous;

Revision 1.19 / (download) - annotate - [select for diffs], Wed Jul 15 04:19:41 2015 UTC (8 years, 10 months ago) by ajacoutot
Branch: MAIN
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored)

Make it possible to get the daemon_class.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jul 14 23:16:56 2015 UTC (8 years, 10 months ago) by ajacoutot
Branch: MAIN
Changes since 1.17: +53 -41 lines
Diff to previous 1.17 (colored)

Deprecate getall (will be removed after 5.8).
Implement a new "ls" subcommand, to list daemons according to the argument
(all, started, ...).

input and ok robert@
ok jasper@

Revision 1.17 / (download) - annotate - [select for diffs], Wed Apr 22 16:25:31 2015 UTC (9 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.16: +20 -20 lines
Diff to previous 1.16 (colored)

Use .Ar for placeholders and .Cm for arguments to be provided verbatim.
No text change.
Inconsistent markup noticed by Alex dot Greif at greifdesign dot net.
OK jmc@ ajacoutot@.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Jan 8 09:03:26 2015 UTC (9 years, 4 months ago) by ajacoutot
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.15: +33 -28 lines
Diff to previous 1.15 (colored)

Clarify and simplify.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jan 7 17:15:47 2015 UTC (9 years, 4 months ago) by ajacoutot
Branch: MAIN
Changes since 1.14: +4 -5 lines
Diff to previous 1.14 (colored)

Tweaks from jmc@

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jan 7 10:44:14 2015 UTC (9 years, 4 months ago) by ajacoutot
Branch: MAIN
Changes since 1.13: +14 -6 lines
Diff to previous 1.13 (colored)

Start tweaking a bit.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jan 6 12:28:56 2015 UTC (9 years, 4 months ago) by ajacoutot
Branch: MAIN
Changes since 1.12: +65 -44 lines
Diff to previous 1.12 (colored)

Sync with new rcctl usage. Will get some much needed love within the next
few days.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Dec 29 15:09:00 2014 UTC (9 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.11: +18 -7 lines
Diff to previous 1.11 (colored)

document ordering more explicitly;
feedback and ok ajacoutot@ rpe@

Revision 1.11 / (download) - annotate - [select for diffs], Wed Dec 24 13:04:43 2014 UTC (9 years, 5 months ago) by ajacoutot
Branch: MAIN
Changes since 1.10: +14 -27 lines
Diff to previous 1.10 (colored)

Implement some kind ordering in the startup of package script daemons.
'rcctl order ...' will prepend the daemon(s) given as argument to the
pkg_scripts line (it can be all daemons, some, or just one).
Without argument, it'll display the current order.

While here, drop a couple of examples from the man page to only leave
the most interesting one.

ok schwarze@ rpe@ (with tweaks) jasper@ robert@ sthen@

Revision 1.10 / (download) - annotate - [select for diffs], Mon Oct 13 14:12:57 2014 UTC (9 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.9: +10 -5 lines
Diff to previous 1.9 (colored)

document the "default" subcommand more precisely;
joint work with and OK by ajacoutot@

Revision 1.9 / (download) - annotate - [select for diffs], Sat Oct 11 13:42:49 2014 UTC (9 years, 7 months ago) by ajacoutot
Branch: MAIN
Changes since 1.8: +7 -3 lines
Diff to previous 1.8 (colored)

Add a new "default" command to  display the default flags and whether a
service is enabled or disabled by default.

idea from Patrik Lundin
discussed with and ok schwarze@

Revision 1.8 / (download) - annotate - [select for diffs], Sun Aug 31 06:52:46 2014 UTC (9 years, 9 months ago) by ajacoutot
Branch: MAIN
Changes since 1.7: +6 -3 lines
Diff to previous 1.7 (colored)

Document that exit code 2 indicates a non-existent service.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Aug 29 17:17:22 2014 UTC (9 years, 9 months ago) by ajacoutot
Branch: MAIN
Changes since 1.6: +8 -2 lines
Diff to previous 1.6 (colored)

Document the fact that 'enable' can also be used to modify flags even if
the daemon is already enabled.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Aug 24 07:33:26 2014 UTC (9 years, 9 months ago) by ajacoutot
Branch: MAIN
Changes since 1.5: +4 -3 lines
Diff to previous 1.5 (colored)

Make it possible to pass `-d' and `-f' to the rc.d(8) script.

man page bits from schwarze@
ok jasper@ schwarze@

Revision 1.5 / (download) - annotate - [select for diffs], Thu Aug 21 12:47:22 2014 UTC (9 years, 9 months ago) by ajacoutot
Branch: MAIN
Changes since 1.4: +6 -4 lines
Diff to previous 1.4 (colored)

Make "rcctl status" output match rc.conf(8) format.

ok jasper@

Revision 1.4 / (download) - annotate - [select for diffs], Thu Aug 21 10:15:11 2014 UTC (9 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.3: +13 -18 lines
Diff to previous 1.3 (colored)

Now that rc.conf(8) defines what a base system service, a base
system daemon, and a package daemon is, refer to it instead of
duplicating information.  While here, clean up wording.
OK ajacoutot@

Revision 1.3 / (download) - annotate - [select for diffs], Tue Aug 19 17:45:43 2014 UTC (9 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.2: +20 -25 lines
Diff to previous 1.2 (colored)

To make it even more obvious which combinations are allowed,
provide sub-synopses for the various internal commands,
and make it explicit what applies to daemons only and what
applies to other services as well.
Feedback and OK ajacoutot@.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Aug 19 16:05:02 2014 UTC (9 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.1: +3 -7 lines
Diff to previous 1.1 (colored)

mdoc(7) style: remove trailing whitespace and .Pp before non-compact .Bd/.Bl

Revision 1.1 / (download) - annotate - [select for diffs], Tue Aug 19 14:08:20 2014 UTC (9 years, 9 months ago) by ajacoutot
Branch: MAIN

Introduce rcctl(8), a simple utility for maintaining rc.conf.local(8).

# rcctl
usage: rcctl enable|disable|status|action [service [flags [...]]]

Lots of man page improvement from the usual suspects (jmc@ and schwarze@)
not hooked up yet but committing now so work can continue in-tree
agreed by several

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.