summaryrefslogtreecommitdiff
path: root/usr.sbin/rcctl
AgeCommit message (Collapse)Author
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
2015-10-24"enable" and "disable" are here to stay now that they have a real added valueAntoine Jacoutot
(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@
2015-10-06With growing functionality, the synopsis became long and confusing.Ingo Schwarze
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@
2015-10-06use ellipsis for arguments that can be repeated;Ingo Schwarze
ok ajacoutot@ jmc@
2015-10-04Plural.Antoine Jacoutot
2015-10-04Make it possible to give the same action to several daemons at once.Antoine Jacoutot
e.g. # rcctl restart sshd ntpd from Martijn van Duren with tweaks ok sthen@
2015-10-03Properly indent usage() output.Antoine Jacoutot
2015-08-12Remove getall now that we're post 5.8.Antoine Jacoutot
2015-08-03"ls" requires an argument.Antoine Jacoutot
issue reported by kirby@ "hurry up" deraadt@
2015-08-01Tweak needs_root() output.Antoine Jacoutot
When using "ls" with a root action, properly output the action and flags in the error output; from Theo Buehler
2015-07-25Use .Cm rather than .Ar for fixed strings passed as arguments (commandIngo Schwarze
modifiers). Patch from Michael Reed <m dot reed at mykolab dot com>, tweaked by jmc@.
2015-07-25Fix usage() output.Antoine Jacoutot
from Michael Reed
2015-07-17return 0 when using "getall"Antoine Jacoutot
spotted by jasper@
2015-07-16ConsistencyAntoine Jacoutot
2015-07-16No daemon_class for special services.Antoine Jacoutot
2015-07-16Shorten variable name.Antoine Jacoutot
2015-07-15tweak previous;Jason McIntyre
2015-07-15Make it possible to get the daemon_class.Antoine Jacoutot
2015-07-15Sort 'ls all'.Antoine Jacoutot