mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CS-16393
one typo fix
make passwd service exitable
This commit is contained in:
parent
b59c3c8885
commit
ddffdc9db7
@ -89,7 +89,7 @@ setup_dnsmasq() {
|
|||||||
echo "dhcp-option=tag:interface-$dev,15,$DOMAIN" >> /etc/dnsmasq.d/cloud.conf
|
echo "dhcp-option=tag:interface-$dev,15,$DOMAIN" >> /etc/dnsmasq.d/cloud.conf
|
||||||
service dnsmasq restart
|
service dnsmasq restart
|
||||||
sleep 1
|
sleep 1
|
||||||
}
|
}
|
||||||
|
|
||||||
desetup_dnsmasq() {
|
desetup_dnsmasq() {
|
||||||
logger -t cloud "Desetting up dnsmasq for network $ip/$mask "
|
logger -t cloud "Desetting up dnsmasq for network $ip/$mask "
|
||||||
|
|||||||
@ -1,13 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ip=$1
|
ip=$1
|
||||||
while [ -n "$ip" ]
|
result=$ip
|
||||||
|
while [ -n "$result" ]
|
||||||
do
|
do
|
||||||
socat -lf /var/log/cloud.log TCP4-LISTEN:8080,reuseaddr,crnl,bind=$ip SYSTEM:"/opt/cloud/bin/serve_password.sh"
|
socat -lf /var/log/cloud.log TCP4-LISTEN:8080,reuseaddr,crnl,bind=$ip SYSTEM:"/opt/cloud/bin/serve_password.sh"
|
||||||
rc=$?
|
rc=$?
|
||||||
if [ $rc -ne 0 ]
|
if [ $rc -ne 0 ]
|
||||||
then
|
then
|
||||||
logger -t cloud "Password server failed with error code $rc. Restarting socat..."
|
logger -t cloud "Password server failed with error code $rc. Restarting socat..."
|
||||||
sleep 3
|
sleep 3
|
||||||
fi
|
fi
|
||||||
|
result=`ip addr show | grep $ip`
|
||||||
done
|
done
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user