Age | Commit message (Collapse) | Author |
|
|
|
|
|
ok ajacoutot@
|
|
Use the flags variable instead of hardcoding the output in preparation for
further subcommands.
|
|
feedback and ok ajacoutot@ rpe@
|
|
'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@
|
|
No functional change intended.
|
|
with and ok schwarze@
|
|
use svc_default_enabled_flags like any other function...
|
|
ok swartze@
|
|
may end up in ${svc} by mistake.
OK ajacoutot@
|
|
ignoring irrelevant stuffs under /etc/rc.d.
reworked based on a submission from Craig R. Skinner
ok schwarze@
|
|
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@
|
|
joint work with and OK by ajacoutot@
|
|
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@
|
|
service is enabled or disabled by default.
idea from Patrik Lundin
discussed with and ok schwarze@
|
|
|
|
argument to the built-in echo.
|
|
initial request and patch from Patrik Lundin
simpler patch from and ok schwartze@
|
|
from wbyte via Bryan Steele
|
|
|
|
recent change to append_to_pkg_scripts().
|
|
|
|
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@
|
|
Error out on "rcctl enable daemon flags NO".
Without this check, this "enable" command effectively disabled the daemon.
"commit" ajacoutot@
|
|
svc_is_enabled() and look at ${pkg_scripts} only, flags are not
relevant to this function.
"please commit" ajacoutot@
|
|
the daemon is already enabled.
|
|
with schwarze@
|
|
|
|
|
|
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@.
|
|
Do not validate input twice, scrap needless array, and avoid needless
expensive function calls to svc_get_flags(), svc_default_enabled_flags(),
_rc_parse_conf(), and resolve code duplication. No functional change.
Feedback and OK ajacoutot@.
|
|
up front in add_flags(). This avoids unnecessary work, avoids setting
bogus variables, and reduces the risk of screwing up things when changing
the code. No functional change right now.
ok ajacoutot@
|
|
feedback and ok ajacoutot@
|
|
It's the only way to get daemon_flags in case it contains line
continuation... We only need to do that for enable package scripts.
original idea from Sebastien Marie
discussed with, input from and ok schwarze@
|
|
Add/drop missing/unused local variables.
no functionnal change
|
|
while "foobar_flags" is set to "NO"...
Reparse deamon_flags at the end of add_flags() since they may have been
modified by the function.
|
|
ok ajacoutot@.
For non-trivial automated text editing in sh(1), thou shalt use sed(1).
|
|
reworked from an original diff by schwarze@
|
|
In svc_is_avail(), this simplifies the code by getting rid of the loop.
When running "rcctl status", this allows to not run svc_is_special() -
which spawns a grep - for each and every service, resulting in a 20%
speedup. As a bonus, we get the special services listed at the end,
where they are easier to see than mixed in with the daemons.
ok ajacoutot@ jasper@
|
|
blacklisting auxiliary variables, and it makes the coupling
to rc.subr(8) less tight.
Feedback and OK ajacoutot@.
|
|
they come from. While here, there is no need to check the argument
of needs_root() before displaying it, it is always provided.
ok ajacoutot@ jasper@
|
|
|
|
|
|
ok ajacoutot@
|
|
positional args cleanup commit).
from Sebastien Marie
|
|
the file so that we always have a consistent output.
ok schwarze@ jasper@
|
|
man page bits from schwarze@
ok jasper@ schwarze@
|
|
|
|
ok jasper@
|