mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Use 'configtest' command to test config file to be consistent with apache,
nagios and others. Do not invent yet another wheel. Feature safe: yes
This commit is contained in:
parent
4276086831
commit
ab84524d86
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=305780
2 changed files with 8 additions and 8 deletions
|
@ -30,7 +30,7 @@
|
|||
# reload - hot-reconfig using "-sf" option (active sessions kept)
|
||||
# forcereload - hot-reconfig using "-st" option (active sessions killed)
|
||||
# restart - equiv to "stop" then "start"
|
||||
# checkconfig - checks configuration file defined in haproxy_config
|
||||
# configtest - checks configuration file defined in haproxy_config
|
||||
#
|
||||
#######
|
||||
|
||||
|
@ -51,10 +51,10 @@ load_rc_config $name
|
|||
pidfile=${haproxy_pidfile}
|
||||
required_files=${haproxy_config}
|
||||
|
||||
# Commands: start, stop, restart, reload, checkconfig
|
||||
extra_commands="reload checkconfig"
|
||||
# Commands: start, stop, restart, reload, configtest
|
||||
extra_commands="reload configtest"
|
||||
|
||||
checkconfig_cmd="haproxy_checkconfig"
|
||||
configtest_cmd="haproxy_checkconfig"
|
||||
reload_cmd="haproxy_reload"
|
||||
|
||||
haproxy_reload()
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
# reload - hot-reconfig using "-sf" option (active sessions kept)
|
||||
# forcereload - hot-reconfig using "-st" option (active sessions killed)
|
||||
# restart - equiv to "stop" then "start"
|
||||
# checkconfig - checks configuration file defined in haproxy_config
|
||||
# configtest - checks configuration file defined in haproxy_config
|
||||
#
|
||||
#######
|
||||
|
||||
|
@ -51,10 +51,10 @@ load_rc_config $name
|
|||
pidfile=${haproxy_pidfile}
|
||||
required_files=${haproxy_config}
|
||||
|
||||
# Commands: start, stop, restart, reload, checkconfig
|
||||
extra_commands="reload checkconfig"
|
||||
# Commands: start, stop, restart, reload, configtest
|
||||
extra_commands="reload configtest"
|
||||
|
||||
checkconfig_cmd="haproxy_checkconfig"
|
||||
configtest_cmd="haproxy_checkconfig"
|
||||
reload_cmd="haproxy_reload"
|
||||
|
||||
haproxy_reload()
|
||||
|
|
Loading…
Add table
Reference in a new issue