summaryrefslogtreecommitdiff
path: root/usr.sbin/rcctl
AgeCommit message (Collapse)Author
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@
2015-01-12Make it possible to reset "timeout" to the default value.Antoine Jacoutot
2015-01-12"timeout" must be a positive integer.Antoine Jacoutot
2015-01-08"default" is gone.Antoine Jacoutot
2015-01-08Clarify and simplify.Antoine Jacoutot
2015-01-07Tweaks from jmc@Antoine Jacoutot
2015-01-07Start tweaking a bit.Antoine Jacoutot
2015-01-06Simplify special vars argument checking; invalidating some bogus constructsAntoine Jacoutot
in the process.
2015-01-06While on death-row, 'rcctl status' still is still allowed for now -- soAntoine Jacoutot
make its output match the older one.
2015-01-06Sync with new rcctl usage. Will get some much needed love within the nextAntoine Jacoutot
few days.
2015-01-06Rename some internal variables (flag and flags is way too error-prone):Antoine Jacoutot
flag -> var flags -> args
2015-01-06Major rcctl(8) rewrite to simplify it and add new features. It can nowAntoine Jacoutot
configure "user" and "timeout". Committing now because there's been no release yet including rcctl(8) so it's easier to modify its usage. Usage extended (*retaining full backward compatibility for now*) to: rcctl set|get|getdef foobar [flags|user|timeout|status] The followings will be dropped soon but not right now to give people time to adjust: rcctl enable sshd flags # 'enable' takes no flags, use 'rcctl set ...' rcctl status sshd # use 'rcctl get sshd [flags|status|timeout|user]' rcctl default sshd # use 'rcctl getdef sshd [flags|status|timeout|user]' rcctl status # use 'rcctl getall' Man page changes will come soon. Make sure you have an up-to-date rc.subr. discussed with schwarze@ robert@ jasper@ sthen@ "love the idea" jasper@ ok schwarze@
2015-01-01Drop redundant FUNCS_ONLY.Antoine Jacoutot
2014-12-30Rename a few functions name. Will help factorize some stuffs.Antoine Jacoutot
2014-12-30do not print an empty order in case pkg_scripts is undefinedRobert Nagy
ok ajacoutot@
2014-12-30add_flags() does not need any action argument.Antoine Jacoutot
Use the flags variable instead of hardcoding the output in preparation for further subcommands.
2014-12-29document ordering more explicitly;Ingo Schwarze
feedback and ok ajacoutot@ rpe@
2014-12-24Implement some kind ordering in the startup of package script daemons.Antoine Jacoutot
'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@
2014-12-23Consistency: put variables between curly braces.Antoine Jacoutot
No functional change intended.
2014-11-01Simplify.Antoine Jacoutot
with and ok schwarze@
2014-10-31Make default output matches status. Hackish but we are not allowed toAntoine Jacoutot
use svc_default_enabled_flags like any other function...
2014-10-31Useless use of sed(1).Antoine Jacoutot
ok swartze@