mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-23 21:22:17 +00:00
BUG/MINOR: don't start haproxy on reload
If haproxy is not already running, reload should not start it. Unfortunately the LSB spec does not explicitly cover this case: http://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html but it seems like the more correct behaviour, and actually fixes a real-world issue we saw in SUSE Cloud. Signed-off-by: Adam Spiers <aspiers@suse.com>
This commit is contained in:
parent
ecb74a3d86
commit
107ddc1b67
@ -78,6 +78,10 @@ restart() {
|
||||
}
|
||||
|
||||
reload() {
|
||||
if ! [ -s $PIDFILE ]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
quiet_check
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Errors found in configuration file, check it with '$BASENAME check'."
|
||||
|
Loading…
Reference in New Issue
Block a user