Lines 60-66
Link Here
|
60 |
${command} -q -c -f ${haproxy_config} |
60 |
${command} -q -c -f ${haproxy_config} |
61 |
if [ $? -ne 0 ]; then |
61 |
if [ $? -ne 0 ]; then |
62 |
echo "Error found in ${haproxy_config} - not reloading current process!" |
62 |
echo "Error found in ${haproxy_config} - not reloading current process!" |
63 |
return |
63 |
return 1 |
64 |
fi |
64 |
fi |
65 |
rc_pid=$(check_pidfile ${haproxy_pidfile} ${command}) |
65 |
rc_pid=$(check_pidfile ${haproxy_pidfile} ${command}) |
66 |
if [ $rc_pid ]; then |
66 |
if [ $rc_pid ]; then |
Lines 71-76
Link Here
|
71 |
fi |
71 |
fi |
72 |
else |
72 |
else |
73 |
echo "No process found. Maybe $command isn't running?" |
73 |
echo "No process found. Maybe $command isn't running?" |
|
|
74 |
return 1 |
74 |
fi |
75 |
fi |
75 |
} |
76 |
} |