summaryrefslogtreecommitdiff
path: root/usr.sbin/rcctl
AgeCommit message (Collapse)Author
2024-09-29sync synopsis and usage, sort commands, fix their spacingKlemens Nanni
OK input lucas
2024-07-08Use install -F instead of cat(1); no clue what I was thinking.Antoine Jacoutot
ok robert@
2024-07-08Prevent rewriting /etc/rc.conf.local unconditionnally. Compare the new and oldAntoine Jacoutot
ones and do nothing is they match. This mean that "rcctl enable foobar" will not touch anything is foobar is already enabled. spotted by robert@ using Saltstack (that runs "rcctl enable ..." on a regular basis). ok robert@
2024-05-05Document "ls rogue" exit status.Antoine Jacoutot
2023-07-13Check input before trying to disable a non-existing daemon to prevent parsingAntoine Jacoutot
bogus characters and outputing hell on the console. based on an initial submission from Anthony Coulter, thanks!
2023-04-24"ls rogue" needs root; OK ajaKlemens Nanni
2023-03-01Bogus full stop.Antoine Jacoutot
2022-12-22Denote multiple arguments with 'arg ...' not 'args'Klemens Nanni
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
2022-09-13document "configtest" in SYNOPSIS; from andreiJason McIntyre
while here, sort SYNOPSIS at the behest of ajacoutot; ok ajacoutot
2022-09-01Add a new action: "configtest", to check configuration syntax of the daemon.Antoine Jacoutot
A few adjustments will be done in the next days (like disabling this action if there's no specific rc_configtest function defined). e.g. /etc/rc.d/sshd configtest rcctl configtest sshd idea from naddy@
2022-07-13Fix apmd_flags example.Antoine Jacoutot
2022-05-26Introduce a new daemon_execdir variable for changing to a specified directoryAntoine Jacoutot
before running rc_rcexec. Based on an proposal from openbsd.tech at aisha.cc ok robert@ abieber@
2022-04-01Add missing command in description.Antoine Jacoutot
from Matthew Martin
2022-02-10look for the login class in both login.conf and login.conf.d/${class}Robert Nagy
ok aja@
2021-10-23add "rcctl ls rogue", to show daemons which are running but not set asStuart Henderson
"enabled" in rc.conf.local. naming suggesting from schwarze@, ok kn@ ajacoutot@
2021-06-26make SYNOPSIS match usage; ok ajacoutotJason McIntyre
2021-02-27Add logger(1) support for daemons that are logging to stdout/stderr (mostly fromAntoine Jacoutot
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@
2021-02-18Only pick up files matching alphanumeric and underscore characters underAntoine Jacoutot
/etc/rc.d. This prevents issues with editor backup files (foo~) or other bogus files. ok sthen@
2020-03-31Missing semi-colons.Antoine Jacoutot
2018-10-21explicitely -> explicitlyAntoine Jacoutot
from Hiltjo Posthuma
2018-09-20add missing explanation about daemon_variables removed when disabling a pkgsolene
script ok aja@ jca@
2017-05-30Introduce a scary rc.conf(8) knob library_aslr=(YES|NO) to turn off theTheo Buehler
reordering of libraries by rc(8). This way machines with very slow disk I/O have a chance of booting within reasonable time now that libcrypto is also randomized. Discussed with various; input & ok from deraadt ajacoutot
2016-10-10improve .Bl -tag -width for -Tps mode;Ingo Schwarze
patch from Jan Stary <hans at stare dot cz>; "go ahead" jmc@
2016-09-07Validate service names with _rc_check_name() from rc.subr.Antoine Jacoutot
ok sthen@ robert@
2016-07-30This is effectively a ksh(1) script.Antoine Jacoutot
2016-07-19In rcctl ls, skip all files with a '.' in the name, not just rc.subr;Stuart Henderson
pkg_add renames files in this way when the checksums don't match at update or removal time. [[ ]] suggestion from guenther@ to avoid the messy "case" that I had in my first diff. Other feedback/suggestions from halex aja millert, ok halex@ aja@.
2016-06-19Replace some expensive evals.Antoine Jacoutot
2016-06-19Do caching differently.Antoine Jacoutot
2016-06-19Temporarily turn caching off; there's a small regression when enablingAntoine Jacoutot
multiple daemons at once; being worked on.
2016-06-19Implement rcctl get|getdef all.Antoine Jacoutot
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@
2016-06-19Cache result of often used functions (svc_is_{base,meta,special}).Antoine Jacoutot
Large speedup when iterating over all rc.d scripts. with and ok robert@
2016-06-19grep(1) /etc/rc.conf instead of /etc/rc to detect whether a particularAntoine Jacoutot
rc.d script comes from base of not; it's much faster. ok robert@
2016-06-17No need to hardcode return code.Antoine Jacoutot
2016-04-26It's ok to disable a non-existing daemon.Antoine Jacoutot
Think "pkg_delete foobar && rcctl disable foobar".
2016-04-26Implement daemon_rtable support.Antoine Jacoutot
From Jiri B <jirib ! devio ! us>, thanks!
2016-04-09Use builtin.Antoine Jacoutot
2016-04-01Rename the 'faulty' list action to 'failed'; it clearer.Antoine Jacoutot
prodded by matthieu@ ok millert@ jung@ sthen@
2016-03-28Remove left-over debug line.Antoine Jacoutot
2016-03-27Compute "action" from the _rc_actions variable.Antoine Jacoutot
2016-03-27Make usage() a bit more user friendly wrt "action" and "lsarg".Antoine Jacoutot
prodded by espie@
2016-01-30Actually order matters; I missed it when reviewing previous.Antoine Jacoutot
2016-01-30Explain how to run multiple copies of the same daemon;Ingo Schwarze
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@.
2016-01-29whitespace fixes; ok ajacoutotJason McIntyre
2016-01-29Use apmd instead of ntpd in the example since the later is on by default.Antoine Jacoutot
2016-01-24Check all daemons in "faulty", not just the base ones.Antoine Jacoutot
reported by landry@
2015-12-06multicast_{host,router} -> multicast.Martin Pieuchot
ok ajacoutot@
2015-11-29Better cope with meta rc.d scripts; these are ugly but well...Antoine Jacoutot
2015-11-01Tweak wording.Antoine Jacoutot
Make sure the rc.d script exist in svc_is_meta().
2015-10-31Only handle meta scripts for rc.d actions and enable/disable only.Antoine Jacoutot
ok sthen@
2015-10-24some minor tweaks; ok ajacoutotJason McIntyre