mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Ensure password server is started inside dhcp server system vms
This commit is contained in:
parent
2a18ea4614
commit
a65dd9d9eb
@ -57,6 +57,18 @@ routing_svcs() {
|
|||||||
echo "cloud nfs-common portmap" > /var/cache/cloud/disabled_svcs
|
echo "cloud nfs-common portmap" > /var/cache/cloud/disabled_svcs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dhcpsrvr_svcs() {
|
||||||
|
chkconfig cloud off
|
||||||
|
chkconfig cloud-passwd-srvr on ;
|
||||||
|
chkconfig haproxy off ;
|
||||||
|
chkconfig dnsmasq on
|
||||||
|
chkconfig ssh on
|
||||||
|
chkconfig nfs-common off
|
||||||
|
chkconfig portmap off
|
||||||
|
echo "cloud-passwd-srvr ssh dnsmasq apache2" > /var/cache/cloud/enabled_svcs
|
||||||
|
echo "cloud nfs-common haproxy portmap" > /var/cache/cloud/disabled_svcs
|
||||||
|
}
|
||||||
|
|
||||||
CMDLINE=$(cat /var/cache/cloud/cmdline)
|
CMDLINE=$(cat /var/cache/cloud/cmdline)
|
||||||
TYPE="router"
|
TYPE="router"
|
||||||
PATCH_MOUNT=$1
|
PATCH_MOUNT=$1
|
||||||
@ -99,6 +111,16 @@ then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$TYPE" == "dhcpsrvr" ]
|
||||||
|
then
|
||||||
|
dhcpsrvr_svcs
|
||||||
|
if [ $? -gt 0 ]
|
||||||
|
then
|
||||||
|
printf "Failed to execute dhcpsrvr_svcs\n" >$logfile
|
||||||
|
exit 6
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ "$TYPE" == "consoleproxy" ]
|
if [ "$TYPE" == "consoleproxy" ]
|
||||||
then
|
then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user