Redundant router: Fix wrong log attend to keepalived.log

If something got wrong with passwd_server_ip script, it would output to
keepalived.log, thus cause other scripts malfunctional.

Also make savepassword.sh using the same lock as serve_password.sh.
This commit is contained in:
Sheng Yang 2012-10-26 16:25:15 -07:00
parent 503a5f2ccd
commit 7926e66afa
2 changed files with 2 additions and 2 deletions

View File

@ -19,5 +19,5 @@
ips=$(ip addr show dev eth0 | grep inet | grep eth0 | awk '{print $2}' ); echo $ips
for ip in $ips; do
addr=$(echo $ip | awk -F'/' '{print $1}')
/opt/cloud/bin/passwd_server_ip $addr &
/opt/cloud/bin/passwd_server_ip $addr >> /var/log/cloud.log 2>&1 &
done;

View File

@ -24,7 +24,7 @@
source /root/func.sh
lock="biglock"
lock="passwdlock"
locked=$(getLockFile $lock)
if [ "$locked" != "1" ]
then