Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Deprecate getall (will be removed after 5.8). | ajacoutot | 2015-07-14 | 2 | -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. | schwarze | 2015-04-22 | 1 | -20/+20 | |
| | | | | | | No text change. Inconsistent markup noticed by Alex dot Greif at greifdesign dot net. OK jmc@ ajacoutot@. | |||||
* | Add comment. | ajacoutot | 2015-03-28 | 1 | -1/+4 | |
| | ||||||
* | Add rcctl_err() which is a wrapper for _rc_err() with common rcctl(8) verbiage. | ajacoutot | 2015-03-28 | 1 | -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. | ajacoutot | 2015-03-02 | 1 | -2/+2 | |
| | | | | ok sebastia@ | |||||
* | svc_is_base function didn't catched all base daemons, apparently found | sebastia | 2015-03-01 | 1 | -2/+2 | |
| | | | | | | trying to manage rtadvd with it. OK ajacoutot@ | |||||
* | Drop backward compat syntax. | ajacoutot | 2015-01-18 | 1 | -23/+7 | |
| | ||||||
* | Make sure the given user exists. | ajacoutot | 2015-01-12 | 1 | -1/+5 | |
| | | | | | "I like it" sthen@ ok robert@ | |||||
* | Make it possible to reset "timeout" to the default value. | ajacoutot | 2015-01-12 | 1 | -7/+6 | |
| | ||||||
* | "timeout" must be a positive integer. | ajacoutot | 2015-01-12 | 1 | -2/+2 | |
| | ||||||
* | "default" is gone. | ajacoutot | 2015-01-08 | 1 | -5/+1 | |
| | ||||||
* | Clarify and simplify. | ajacoutot | 2015-01-08 | 1 | -29/+34 | |
| | ||||||
* | Tweaks from jmc@ | ajacoutot | 2015-01-07 | 1 | -4/+3 | |
| | ||||||
* | Start tweaking a bit. | ajacoutot | 2015-01-07 | 1 | -6/+14 | |
| | ||||||
* | Simplify special vars argument checking; invalidating some bogus constructs | ajacoutot | 2015-01-06 | 1 | -4/+3 | |
| | | | | in the process. | |||||
* | While on death-row, 'rcctl status' still is still allowed for now -- so | ajacoutot | 2015-01-06 | 1 | -2/+2 | |
| | | | | make its output match the older one. | |||||
* | Sync with new rcctl usage. Will get some much needed love within the next | ajacoutot | 2015-01-06 | 1 | -44/+65 | |
| | | | | few days. | |||||
* | Rename some internal variables (flag and flags is way too error-prone): | ajacoutot | 2015-01-06 | 1 | -31/+31 | |
| | | | | | flag -> var flags -> args | |||||
* | Major rcctl(8) rewrite to simplify it and add new features. It can now | ajacoutot | 2015-01-06 | 1 | -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. | ajacoutot | 2015-01-01 | 1 | -2/+1 | |
| | ||||||
* | Rename a few functions name. Will help factorize some stuffs. | ajacoutot | 2014-12-30 | 1 | -88/+88 | |
| | ||||||
* | do not print an empty order in case pkg_scripts is undefined | robert | 2014-12-30 | 1 | -2/+2 | |
| | | | | ok ajacoutot@ | |||||
* | add_flags() does not need any action argument. | ajacoutot | 2014-12-30 | 1 | -9/+9 | |
| | | | | | Use the flags variable instead of hardcoding the output in preparation for further subcommands. | |||||
* | document ordering more explicitly; | schwarze | 2014-12-29 | 1 | -7/+18 | |
| | | | | feedback and ok ajacoutot@ rpe@ | |||||
* | Implement some kind ordering in the startup of package script daemons. | ajacoutot | 2014-12-24 | 2 | -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. | ajacoutot | 2014-12-23 | 1 | -25/+25 | |
| | | | | No functional change intended. | |||||
* | Simplify. | ajacoutot | 2014-11-01 | 1 | -4/+2 | |
| | | | | with and ok schwarze@ | |||||
* | Make default output matches status. Hackish but we are not allowed to | ajacoutot | 2014-10-31 | 1 | -2/+4 | |
| | | | | use svc_default_enabled_flags like any other function... | |||||
* | Useless use of sed(1). | ajacoutot | 2014-10-31 | 1 | -2/+2 | |
| | | | | ok swartze@ | |||||
* | Ensure proper separation of grep's options and rcctl options that | rpe | 2014-10-27 | 1 | -5/+5 | |
| | | | | | | may end up in ${svc} by mistake. OK ajacoutot@ | |||||
* | Add a new ls_rcscripts() function to properly get all rc.d(8) scripts | ajacoutot | 2014-10-15 | 1 | -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 characters | schwarze | 2014-10-13 | 1 | -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; | schwarze | 2014-10-13 | 1 | -5/+10 | |
| | | | | joint work with and OK by ajacoutot@ | |||||
* | Fix a small bug in rcctl status <daemon>: | schwarze | 2014-10-11 | 1 | -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 a | ajacoutot | 2014-10-11 | 2 | -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. | ajacoutot | 2014-10-10 | 1 | -3/+3 | |
| | ||||||
* | Use printf(1) to prevent '-e' in daemon_flags from being fed as an | ajacoutot | 2014-10-10 | 1 | -3/+3 | |
| | | | | argument to the built-in echo. | |||||
* | Allow passing flags without arguments for special variables. | ajacoutot | 2014-10-10 | 1 | -2/+2 | |
| | | | | | initial request and patch from Patrik Lundin simpler patch from and ok schwartze@ | |||||
* | Fix evil typo. | ajacoutot | 2014-09-01 | 1 | -2/+2 | |
| | | | | from wbyte via Bryan Steele | |||||
* | Add Ingo's copyright as per his request. | ajacoutot | 2014-08-31 | 1 | -1/+2 | |
| | ||||||
* | No need to update daemon_flags in the enviroment anymore since the | ajacoutot | 2014-08-31 | 1 | -4/+1 | |
| | | | | recent change to append_to_pkg_scripts(). | |||||
* | Document that exit code 2 indicates a non-existent service. | ajacoutot | 2014-08-31 | 1 | -3/+6 | |
| | ||||||
* | When a service is not available, return ENOENT. | ajacoutot | 2014-08-30 | 1 | -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: | schwarze | 2014-08-29 | 1 | -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 expensive | schwarze | 2014-08-29 | 1 | -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 if | ajacoutot | 2014-08-29 | 1 | -2/+8 | |
| | | | | the daemon is already enabled. | |||||
* | Drop check and tweak comment. | ajacoutot | 2014-08-28 | 1 | -4/+3 | |
| | | | | with schwarze@ | |||||
* | Simplify. | ajacoutot | 2014-08-28 | 1 | -5/+2 | |
| | ||||||
* | Consistency in conditionals; no functional change. | ajacoutot | 2014-08-28 | 1 | -5/+5 | |
| | ||||||
* | Disentangle svc_default_enabled_flags() and svc_get_flags(). | schwarze | 2014-08-27 | 1 | -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@. |