summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rcctl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Missing semi-colons.ajacoutot2020-03-311-1/+2
|
* explicitely -> explicitlyajacoutot2018-10-211-2/+2
| | | | from Hiltjo Posthuma
* add missing explanation about daemon_variables removed when disabling a pkgsolene2018-09-201-3/+4
| | | | | | script ok aja@ jca@
* Introduce a scary rc.conf(8) knob library_aslr=(YES|NO) to turn off thetb2017-05-301-2/+3
| | | | | | | | | 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
* improve .Bl -tag -width for -Tps mode;schwarze2016-10-101-3/+3
| | | | | patch from Jan Stary <hans at stare dot cz>; "go ahead" jmc@
* Validate service names with _rc_check_name() from rc.subr.ajacoutot2016-09-071-2/+2
| | | | ok sthen@ robert@
* This is effectively a ksh(1) script.ajacoutot2016-07-301-2/+2
|
* In rcctl ls, skip all files with a '.' in the name, not just rc.subr;sthen2016-07-191-2/+2
| | | | | | | 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@.
* Replace some expensive evals.ajacoutot2016-06-191-10/+19
|
* Do caching differently.ajacoutot2016-06-191-13/+13
|
* Temporarily turn caching off; there's a small regression when enablingajacoutot2016-06-191-13/+13
| | | | multiple daemons at once; being worked on.
* Implement rcctl get|getdef all.ajacoutot2016-06-192-9/+22
| | | | | | | | | | | 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@
* Cache result of often used functions (svc_is_{base,meta,special}).ajacoutot2016-06-191-1/+19
| | | | | | Large speedup when iterating over all rc.d scripts. with and ok robert@
* grep(1) /etc/rc.conf instead of /etc/rc to detect whether a particularajacoutot2016-06-191-3/+2
| | | | | | rc.d script comes from base of not; it's much faster. ok robert@
* No need to hardcode return code.ajacoutot2016-06-171-2/+2
|
* It's ok to disable a non-existing daemon.ajacoutot2016-04-261-7/+13
| | | | Think "pkg_delete foobar && rcctl disable foobar".
* Implement daemon_rtable support.ajacoutot2016-04-262-9/+23
| | | | From Jiri B <jirib ! devio ! us>, thanks!
* Use builtin.ajacoutot2016-04-091-2/+5
|
* Rename the 'faulty' list action to 'failed'; it clearer.ajacoutot2016-04-012-9/+9
| | | | | prodded by matthieu@ ok millert@ jung@ sthen@
* Remove left-over debug line.ajacoutot2016-03-281-3/+1
|
* Compute "action" from the _rc_actions variable.ajacoutot2016-03-271-2/+4
|
* Make usage() a bit more user friendly wrt "action" and "lsarg".ajacoutot2016-03-271-3/+3
| | | | prodded by espie@
* Actually order matters; I missed it when reviewing previous.ajacoutot2016-01-301-2/+2
|
* Explain how to run multiple copies of the same daemon;schwarze2016-01-301-2/+13
| | | | | | 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@.
* whitespace fixes; ok ajacoutotjmc2016-01-291-3/+3
|
* Use apmd instead of ntpd in the example since the later is on by default.ajacoutot2016-01-291-9/+10
|
* Check all daemons in "faulty", not just the base ones.ajacoutot2016-01-241-2/+2
| | | | reported by landry@
* multicast_{host,router} -> multicast.mpi2015-12-061-3/+2
| | | | ok ajacoutot@
* Better cope with meta rc.d scripts; these are ugly but well...ajacoutot2015-11-291-36/+43
|
* Tweak wording.ajacoutot2015-11-011-6/+6
| | | | Make sure the rc.d script exist in svc_is_meta().
* Only handle meta scripts for rc.d actions and enable/disable only.ajacoutot2015-10-311-1/+13
| | | | ok sthen@
* some minor tweaks; ok ajacoutotjmc2015-10-241-4/+4
|
* "enable" and "disable" are here to stay now that they have a real added valueajacoutot2015-10-242-8/+17
| | | | | | | (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@
* With growing functionality, the synopsis became long and confusing.schwarze2015-10-062-8/+17
| | | | | | 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@
* use ellipsis for arguments that can be repeated;schwarze2015-10-061-11/+9
| | | | ok ajacoutot@ jmc@
* Plural.ajacoutot2015-10-041-5/+5
|
* Make it possible to give the same action to several daemons at once.ajacoutot2015-10-041-43/+72
| | | | | | | | e.g. # rcctl restart sshd ntpd from Martijn van Duren with tweaks ok sthen@
* Properly indent usage() output.ajacoutot2015-10-031-2/+2
|
* Remove getall now that we're post 5.8.ajacoutot2015-08-121-6/+2
|
* "ls" requires an argument.ajacoutot2015-08-031-4/+2
| | | | | issue reported by kirby@ "hurry up" deraadt@
* Tweak needs_root() output.ajacoutot2015-08-011-3/+3
| | | | | When using "ls" with a root action, properly output the action and flags in the error output; from Theo Buehler
* Use .Cm rather than .Ar for fixed strings passed as arguments (commandschwarze2015-07-251-12/+11
| | | | | modifiers). Patch from Michael Reed <m dot reed at mykolab dot com>, tweaked by jmc@.
* Fix usage() output.ajacoutot2015-07-251-2/+2
| | | | from Michael Reed
* return 0 when using "getall"ajacoutot2015-07-171-1/+2
| | | | spotted by jasper@
* Consistencyajacoutot2015-07-161-2/+3
|
* No daemon_class for special services.ajacoutot2015-07-161-2/+2
|
* Shorten variable name.ajacoutot2015-07-161-6/+6
|
* tweak previous;jmc2015-07-151-3/+3
|
* Make it possible to get the daemon_class.ajacoutot2015-07-152-6/+18
|
* Sort 'ls all'.ajacoutot2015-07-151-3/+5
|