mirror of https://github.com/apache/cloudstack.git
Ensure password server is started inside dhcp server system vms
This commit is contained in:
parent
db18c86d65
commit
6679b98069
|
|
@ -57,6 +57,18 @@ routing_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)
|
||||
TYPE="router"
|
||||
PATCH_MOUNT=$1
|
||||
|
|
@ -99,6 +111,16 @@ then
|
|||
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" ]
|
||||
then
|
||||
|
|
|
|||
Loading…
Reference in New Issue