where the config files may have been loaded already and our load_rc_config
invocation may do nothing: thus, we need to honor any previously set value
of svscan_enable;
- for some reason svscan_stop_post() does not like the IFS-like vars set by
rc.subr and localpkg; use find/xargs instead of having the shell parse its
own output;
- dequote COMMENT;
- fix the daemon(8)-ization by moving 2>&1 to its proper place, so that the
errors from svscan are actually picked up by readproctitle, as explained
in <20040630175050.GD979@straylight.m.ringlet.net>;
- move the 'Starting svscan' message to its proper place, so that the PATH
set by env(1) affects svscan, not the echo command :)
script; that is, add 'start|stop' argument processing and
the ability to actually stop the script.
Bump PORTREVISION to indicate a functionality change - or rather,
to indicate a change that actually makes this a FreeBSD port..
Final push by: Dan Langille <dan@langille.org> in a somewhat
unrelated e-mail exchange
Obtained from: a svscan SysV init script that I somehow managed
to lose the source and URL for :(
the one-second sleep between invocations was moved to after the actual
invocation. This sleep could be interrupted by a SIGCHLD in the case
of a failing service, and the service could be restarted way more than
the documented once-per-second. Move the sleep back before the fork(),
just don't sleep before the very first fork, so the service starts faster.
Silence by: Daniel J. Bernstein (no telling if he'll fix this in later
daemontools releases, so I guess we'll have to do it as part
of our port..)
Approved by: nbm (maintainer)
PR. I'll leave the creation of the directory, whatever it may be, to
the user.
PR: ports/19191
Submitted by: Mario Sergio Fujikawa Ferreira <lioux@linf.unb.br>