diff options
author | Dmitry Sivachenko <demon@FreeBSD.org> | 2018-08-24 19:19:26 +0000 |
---|---|---|
committer | Dmitry Sivachenko <demon@FreeBSD.org> | 2018-08-24 19:19:26 +0000 |
commit | 2c3072cadbeb04631320ead8bb123ff593ea963c (patch) | |
tree | ea988d85010b3774974a2ed0c4906264a9a7d893 /net/haproxy-devel/files | |
parent | 3df9ce08f07c954d0fc08c9685278f44e6b4e9a7 (diff) |
Notes
Diffstat (limited to 'net/haproxy-devel/files')
-rw-r--r-- | net/haproxy-devel/files/haproxy.in | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/net/haproxy-devel/files/haproxy.in b/net/haproxy-devel/files/haproxy.in index 3e2d8b3a034e..c3413a8c8829 100644 --- a/net/haproxy-devel/files/haproxy.in +++ b/net/haproxy-devel/files/haproxy.in @@ -29,16 +29,19 @@ name="haproxy" rcvar=haproxy_enable command="%%PREFIX%%/sbin/haproxy" -extra_commands="reload configtest hardstop hardreload" +extra_commands="reload configtest hardstop hardreload softreload" reload_cmd="haproxy_reload" hardreload_cmd="haproxy_reload" hardreload_precmd="def_hardreload_option" +softreload_cmd="haproxy_reload" +softreload_precmd="def_softreload_option" stop_cmd="haproxy_stop" hardstop_cmd="haproxy_stop" hardstop_precmd="def_hardstop_signal" : ${haproxy_enable:="NO"} : ${haproxy_config:="%%PREFIX%%/etc/${name}.conf"} +: ${haproxy_socket:="/var/run/${name}/socket"} pidfile=${haproxy_pidfile:-"/var/run/haproxy.pid"} def_hardreload_option() @@ -46,6 +49,11 @@ def_hardreload_option() reload_opt="-st" } +def_softreload_option() +{ + reload_opt="-x ${haproxy_socket} -sf" +} + def_hardstop_signal() { sig_stop="TERM" |