mirror of https://github.com/apache/cloudstack.git
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:
parent
503a5f2ccd
commit
7926e66afa
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
source /root/func.sh
|
||||
|
||||
lock="biglock"
|
||||
lock="passwdlock"
|
||||
locked=$(getLockFile $lock)
|
||||
if [ "$locked" != "1" ]
|
||||
then
|
||||
|
|
|
|||
Loading…
Reference in New Issue