summaryrefslogtreecommitdiff
path: root/usr.sbin/rcctl
AgeCommit message (Collapse)Author
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
2015-07-14Deprecate getall (will be removed after 5.8).Antoine Jacoutot
Implement a new "ls" subcommand, to list daemons according to the argument (all, started, ...). input and ok robert@ ok jasper@
2015-04-22Use .Ar for placeholders and .Cm for arguments to be provided verbatim.Ingo Schwarze
No text change. Inconsistent markup noticed by Alex dot Greif at greifdesign dot net. OK jmc@ ajacoutot@.
2015-03-28Add comment.Antoine Jacoutot
2015-03-28Add rcctl_err() which is a wrapper for _rc_err() with common rcctl(8) verbiage.Antoine Jacoutot
Add some explicit error messages while here. Prefer cat over cp/mv to edit rc.conf.local; this prevents creating rc.conf.local with mode 0600.
2015-03-02Extend previous.Antoine Jacoutot
ok sebastia@
2015-03-01svc_is_base function didn't catched all base daemons, apparently foundSebastian Reitenbach
trying to manage rtadvd with it. OK ajacoutot@
2015-01-18Drop backward compat syntax.Antoine Jacoutot
2015-01-12Make sure the given user exists.Antoine Jacoutot
"I like it" sthen@ ok robert@