View | Details | Raw Unified | Return to bug 221402 | Differences between
and this patch

Collapse All | Expand All

(-)net/haproxy-devel/files/haproxy.in (-4 / +10 lines)
Lines 29-45 Link Here
29
name="haproxy"
29
name="haproxy"
30
rcvar=haproxy_enable
30
rcvar=haproxy_enable
31
command="%%PREFIX%%/sbin/haproxy"
31
command="%%PREFIX%%/sbin/haproxy"
32
extra_commands="reload configtest"
32
extra_commands="reload configtest hardstop"
33
reload_cmd="haproxy_reload"
33
reload_cmd="haproxy_reload"
34
stop_cmd="haproxy_stop"
34
stop_cmd="haproxy_stop"
35
hardstop_cmd="haproxy_stop"
36
hardstop_precmd="hardstop_pre_check"
35
37
36
: ${haproxy_enable:="NO"}
38
: ${haproxy_enable:="NO"}
37
: ${haproxy_config:="%%PREFIX%%/etc/${name}.conf"}
39
: ${haproxy_config:="%%PREFIX%%/etc/${name}.conf"}
38
pidfile=${haproxy_pidfile:-"/var/run/haproxy.pid"}
40
pidfile=${haproxy_pidfile:-"/var/run/haproxy.pid"}
39
41
40
if [ -z "$rc_force" ]; then
42
hardstop_pre_check()
41
    sig_stop="USR1"
43
{
42
fi
44
    # setting signal to "TERM" to enable HAProxy's hard stop mode
45
    sig_stop="TERM"
46
}
43
47
44
load_rc_config $name
48
load_rc_config $name
45
49
Lines 81-86 Link Here
81
configtest_cmd="$command -c -f $haproxy_config"
85
configtest_cmd="$command -c -f $haproxy_config"
82
start_precmd="$command -q -c -f $haproxy_config"
86
start_precmd="$command -q -c -f $haproxy_config"
83
required_files=$haproxy_config
87
required_files=$haproxy_config
88
# setting default signal to "USR1" to enable HAProxy's graceful stop mode
89
sig_stop="${haproxy_sig_stop:-USR1}"
84
90
85
haproxy_reload()
91
haproxy_reload()
86
{
92
{

Return to bug 221402