FreeBSD Bugzilla – Attachment 185436 Details for
Bug 221402
[PATCH] net/haproxy: add support for hard stop mode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
The same patch with hardreload command added
haproxy.diff (text/plain), 1.40 KB, created by
Dmitry Sivachenko
on 2017-08-15 11:10:55 UTC
(
hide
)
Description:
The same patch with hardreload command added
Filename:
MIME Type:
Creator:
Dmitry Sivachenko
Created:
2017-08-15 11:10:55 UTC
Size:
1.40 KB
patch
obsolete
>Index: haproxy.in >=================================================================== >--- haproxy.in (revision 447484) >+++ haproxy.in (working copy) >@@ -29,18 +29,28 @@ > name="haproxy" > rcvar=haproxy_enable > command="%%PREFIX%%/sbin/haproxy" >-extra_commands="reload configtest" >+extra_commands="reload configtest hardstop hardreload" > reload_cmd="haproxy_reload" >+hardreload_cmd="haproxy_reload" >+hardreload_precmd="def_hardreload_option" > stop_cmd="haproxy_stop" >+hardstop_cmd="haproxy_stop" >+hardstop_precmd="def_hardstop_signal" > > : ${haproxy_enable:="NO"} > : ${haproxy_config:="%%PREFIX%%/etc/${name}.conf"} > pidfile=${haproxy_pidfile:-"/var/run/haproxy.pid"} > >-if [ -z "$rc_force" ]; then >- sig_stop="USR1" >-fi >+def_hardreload_option() >+{ >+ reload_opt="-st" >+} > >+def_hardstop_signal() >+{ >+ sig_stop="TERM" >+} >+ > load_rc_config $name > > is_valid_profile() { >@@ -81,6 +91,8 @@ > configtest_cmd="$command -c -f $haproxy_config" > start_precmd="$command -q -c -f $haproxy_config" > required_files=$haproxy_config >+sig_stop=SIGUSR1 >+reload_opt="-sf" > > haproxy_reload() > { >@@ -90,11 +102,7 @@ > fi > rc_pid=$(check_pidfile ${pidfile} ${command}) > if [ $rc_pid ]; then >- if [ -z "$rc_force" ]; then >- ${command} ${haproxy_flags} -sf $(cat ${pidfile}) >- else >- ${command} ${haproxy_flags} -st $(cat ${pidfile}) >- fi >+ ${command} ${haproxy_flags} $reload_opt $(cat ${pidfile}) > else > _run_rc_notrunning > return 1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 221402
:
185247
|
185248
|
185418
|
185419
| 185436