summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rcctl (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Deprecate getall (will be removed after 5.8).ajacoutot2015-07-142-71/+143
| | | | | | | | Implement a new "ls" subcommand, to list daemons according to the argument (all, started, ...). input and ok robert@ ok jasper@
* Use .Ar for placeholders and .Cm for arguments to be provided verbatim.schwarze2015-04-221-20/+20
| | | | | | No text change. Inconsistent markup noticed by Alex dot Greif at greifdesign dot net. OK jmc@ ajacoutot@.
* Add comment.ajacoutot2015-03-281-1/+4
|
* Add rcctl_err() which is a wrapper for _rc_err() with common rcctl(8) verbiage.ajacoutot2015-03-281-18/+29
| | | | | | | 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.
* Extend previous.ajacoutot2015-03-021-2/+2
| | | | ok sebastia@
* svc_is_base function didn't catched all base daemons, apparently foundsebastia2015-03-011-2/+2
| | | | | | trying to manage rtadvd with it. OK ajacoutot@
* Drop backward compat syntax.ajacoutot2015-01-181-23/+7
|
* Make sure the given user exists.ajacoutot2015-01-121-1/+5
| | | | | "I like it" sthen@ ok robert@
* Make it possible to reset "timeout" to the default value.ajacoutot2015-01-121-7/+6
|
* "timeout" must be a positive integer.ajacoutot2015-01-121-2/+2
|
* "default" is gone.ajacoutot2015-01-081-5/+1
|
* Clarify and simplify.ajacoutot2015-01-081-29/+34
|
* Tweaks from jmc@ajacoutot2015-01-071-4/+3
|
* Start tweaking a bit.ajacoutot2015-01-071-6/+14
|
* Simplify special vars argument checking; invalidating some bogus constructsajacoutot2015-01-061-4/+3
| | | | in the process.
* While on death-row, 'rcctl status' still is still allowed for now -- soajacoutot2015-01-061-2/+2
| | | | make its output match the older one.
* Sync with new rcctl usage. Will get some much needed love within the nextajacoutot2015-01-061-44/+65
| | | | few days.
* Rename some internal variables (flag and flags is way too error-prone):ajacoutot2015-01-061-31/+31
| | | | | flag -> var flags -> args
* Major rcctl(8) rewrite to simplify it and add new features. It can nowajacoutot2015-01-061-179/+232
| | | | | | | | | | | | | | | | | | | | | 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@
* Drop redundant FUNCS_ONLY.ajacoutot2015-01-011-2/+1
|
* Rename a few functions name. Will help factorize some stuffs.ajacoutot2014-12-301-88/+88
|
* do not print an empty order in case pkg_scripts is undefinedrobert2014-12-301-2/+2
| | | | ok ajacoutot@
* add_flags() does not need any action argument.ajacoutot2014-12-301-9/+9
| | | | | Use the flags variable instead of hardcoding the output in preparation for further subcommands.
* document ordering more explicitly;schwarze2014-12-291-7/+18
| | | | feedback and ok ajacoutot@ rpe@
* Implement some kind ordering in the startup of package script daemons.ajacoutot2014-12-242-35/+57
| | | | | | | | | | | '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@
* Consistency: put variables between curly braces.ajacoutot2014-12-231-25/+25
| | | | No functional change intended.
* Simplify.ajacoutot2014-11-011-4/+2
| | | | with and ok schwarze@
* Make default output matches status. Hackish but we are not allowed toajacoutot2014-10-311-2/+4
| | | | use svc_default_enabled_flags like any other function...
* Useless use of sed(1).ajacoutot2014-10-311-2/+2
| | | | ok swartze@
* Ensure proper separation of grep's options and rcctl options thatrpe2014-10-271-5/+5
| | | | | | may end up in ${svc} by mistake. OK ajacoutot@
* Add a new ls_rcscripts() function to properly get all rc.d(8) scriptsajacoutot2014-10-151-3/+13
| | | | | | | ignoring irrelevant stuffs under /etc/rc.d. reworked based on a submission from Craig R. Skinner ok schwarze@
* Carefully quote the flags argument such that leading blank charactersschwarze2014-10-131-8/+12
| | | | | | | | are preserved in all situations; this is relevant such that for example 'rcctl enable identd flags " "' puts 'identd_flags=" "' into /etc/rc.conf.local and subsequent 'rcctl enable identd' without flags keeps it intact instead of stripping it down to 'identd_flags='. ok ajacoutot@
* document the "default" subcommand more precisely;schwarze2014-10-131-5/+10
| | | | joint work with and OK by ajacoutot@
* Fix a small bug in rcctl status <daemon>:schwarze2014-10-111-2/+2
| | | | | | | If the daemon has default flags in its rc.d(8) script but its flags are explicitly set to =" " in rc.conf.local(8), the default flags were erroneously displayed. Show " " instead. ok ajacoutot@
* Add a new "default" command to display the default flags and whether aajacoutot2014-10-112-13/+40
| | | | | | | service is enabled or disabled by default. idea from Patrik Lundin discussed with and ok schwarze@
* Actually use built-in print like rc.subr already does.ajacoutot2014-10-101-3/+3
|
* Use printf(1) to prevent '-e' in daemon_flags from being fed as anajacoutot2014-10-101-3/+3
| | | | argument to the built-in echo.
* Allow passing flags without arguments for special variables.ajacoutot2014-10-101-2/+2
| | | | | initial request and patch from Patrik Lundin simpler patch from and ok schwartze@
* Fix evil typo.ajacoutot2014-09-011-2/+2
| | | | from wbyte via Bryan Steele
* Add Ingo's copyright as per his request.ajacoutot2014-08-311-1/+2
|
* No need to update daemon_flags in the enviroment anymore since theajacoutot2014-08-311-4/+1
| | | | recent change to append_to_pkg_scripts().
* Document that exit code 2 indicates a non-existent service.ajacoutot2014-08-311-3/+6
|
* When a service is not available, return ENOENT.ajacoutot2014-08-301-2/+2
| | | | | | | | | Previous to this commit it was not possible to know whether a service existed without parsing the output of 'rcctl status' which is very expensive. req. by armani@ ok robert@ schwarze@
* Additional input validation:schwarze2014-08-291-1/+4
| | | | | | Error out on "rcctl enable daemon flags NO". Without this check, this "enable" command effectively disabled the daemon. "commit" ajacoutot@
* Simplify append_to_pkg_scripts(), in particular avoid the expensiveschwarze2014-08-291-6/+4
| | | | | | svc_is_enabled() and look at ${pkg_scripts} only, flags are not relevant to this function. "please commit" ajacoutot@
* Document the fact that 'enable' can also be used to modify flags even ifajacoutot2014-08-291-2/+8
| | | | the daemon is already enabled.
* Drop check and tweak comment.ajacoutot2014-08-281-4/+3
| | | | with schwarze@
* Simplify.ajacoutot2014-08-281-5/+2
|
* Consistency in conditionals; no functional change.ajacoutot2014-08-281-5/+5
|
* Disentangle svc_default_enabled_flags() and svc_get_flags().schwarze2014-08-271-13/+9
| | | | | | This saves three expensive function calls in svc_default_enabled_flags(), two to _rc_parse_conf() and one to svc_get_flags(). No functional change. Feedback and ok ajacoutot@.