diff options
Diffstat (limited to 'net-proxy')
-rw-r--r-- | net-proxy/haproxy/files/haproxy.initd-r3 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net-proxy/haproxy/files/haproxy.initd-r3 b/net-proxy/haproxy/files/haproxy.initd-r3 index 2ad38fc9ebcc..abba9f865345 100644 --- a/net-proxy/haproxy/files/haproxy.initd-r3 +++ b/net-proxy/haproxy/files/haproxy.initd-r3 @@ -60,6 +60,17 @@ stop_pre() { fi } +stop() { + local _t _pid + + _t="$(mktemp)" + for _pid in $(cat ${pidfile}) ; do + echo "${_pid}" > "${_t}" + pidfile="${_t}" openrc_default_stop + done + rm -f "${_t}" +} + reload() { checkconfig || { eerror "Reloading failed, please fix your config(s) first"; return 1; } |