Add log for reconfigLB.sh

This commit is contained in:
Sheng Yang 2011-09-09 18:24:37 -07:00
parent 2f3635c312
commit 97d788dfc9
1 changed files with 2 additions and 2 deletions

View File

@ -28,12 +28,12 @@ ret=0
kill -TTOU $(cat /var/run/haproxy.pid.old)
sleep 2
if haproxy -D -p /var/run/haproxy.pid -f /etc/haproxy/haproxy.cfg; then
echo "New haproxy instance successfully loaded, stopping previous one."
logger -t cloud "New haproxy instance successfully loaded, stopping previous one."
kill -KILL $(cat /var/run/haproxy.pid.old)
rm -f /var/run/haproxy.pid.old
ret=0
else
echo "New instance failed to start, resuming previous one."
logger -t cloud "New instance failed to start, resuming previous one."
kill -TTIN $(cat /var/run/haproxy.pid.old)
rm -f /var/run/haproxy.pid
mv /var/run/haproxy.pid.old /var/run/haproxy.pid