Commit 73dfc4fb authored by iSergio's avatar iSergio
Browse files

Fix

parent d4ba0660
Loading
Loading
Loading
Loading
+26 −12
Original line number Diff line number Diff line
@@ -37,33 +37,47 @@ fi
echo "$DATE LOG:   iserge: This is standby hostname. Enable and start services"
DELEGATE_IP=$(cat /etc/pgpool-II/pgpool.conf | grep delegate_IP | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}')
# Wait for 15 address up
while ! ifconfig | grep -F "$DELEGATE_IP" > /dev/null; do
while ! /sbin/ifconfig | grep -F "$DELEGATE_IP" > /dev/null; do
    echo "wait"
    sleep 1
done

#/sbin/ifconfig eth1 10.41.6.66 netmask 255.255.255.248 up

# Start et7daemon
if [[ ! -f /var/run/et7daemon.pid ]]; then
    service et7daemon start
    /sbin/service et7daemon start
fi
chkconfig et7daemon on
/sbin/chkconfig et7daemon on
# Start et7sync
if [[ ! -f /var/run/et7sync.pid ]]; then
    service et7sync start
    /sbin/service et7sync start
fi
chkconfig et7sync on
/sbin/chkconfig et7sync on

# Enable jboss use cached dc after reboot
sed -i "s/JBOSS_DC_MODE=--backup/JBOSS_DC_MODE=--cached-dc/g" /etc/kszkipo/as7/jboss-as.conf

# Start as7-standalone
service as7-standalone start
chkconfig as7-standalone on
/sbin/service as7-standalone start
/sbin/chkconfig as7-standalone on

# Start ivkportal
/sbin/service ivkportal start
/sbin/chkconfig ivkportal on

# Start karaf
/sbin/service karaf start
/sbin/chkconfig karaf on

# Start RIB server
service rib-server start
chkconfig rib-server on
/sbin/service rib-server start
/sbin/chkconfig rib-server on

/sbin/service tlcdb-loader start
/sbin/chkconfig tlcdb-loader on

# Start enable sep1
virsh start sep1
virsh autostart sep1
# Start enable sep
/usr/bin/virsh start sep
/usr/bin/virsh autostart sep