f27d60add9
Supervisor setups break easily when start/stop/status functions are not default. Applications that write multiple PIDs to a pidfile (eg HAProxy as described in bug 601540), can also benefit from being able to call the default start/stop/status with modified environment variables. Expose the default start/stop/status functions as default_start/stop/status, and use them for the defaults start/stop/status. Trivial usage example: ``` stop() { t=$(mktemp) for pid in $(cat $pidfile) ; do echo $pid >$t pidfile=$t default_stop done rm -f $t } ``` X-Gentoo-Bug: 601540 X-Gentoo-Bug-URL: https://bugs.gentoo.org/601540 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> |
||
---|---|---|
.. | ||
.gitignore | ||
binfmt.sh.in | ||
cgroup-release-agent.sh.in | ||
functions.sh.in | ||
gendepends.sh.in | ||
init-early.sh.Linux.in | ||
init.sh.BSD.in | ||
init.sh.GNU-kFreeBSD.in | ||
init.sh.GNU.in | ||
init.sh.Linux.in | ||
Makefile | ||
migrate-to-run.sh.in | ||
openrc-run.sh.in | ||
rc-cgroup.sh.in | ||
rc-functions.sh.in | ||
rc-mount.sh | ||
runit.sh | ||
runtests.sh | ||
s6.sh | ||
start-stop-daemon.sh | ||
supervise-daemon.sh |