aboutsummaryrefslogtreecommitdiff
path: root/AUTHORS
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2016-12-15 14:43:34 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2016-12-17 14:50:11 -0800
commitf27d60add9ee1ef8a90ea0034edf6f4e4e6d0ed8 (patch)
tree5cfbfaca3c1397bd63916100a6798492f651e6b6 /AUTHORS
parent8ad460c54ce66aa0900cf872d9ebfacf0c03f9da (diff)
sh/openrc-run.sh: expose default start/stop/status
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>
Diffstat (limited to 'AUTHORS')
0 files changed, 0 insertions, 0 deletions