#!/bin/sh # # Turn on the VIP so we can listen to the load balancer. echo 1 > /proc/sys/net/ipv4/conf/eth0/arp_ignore echo 2 > /proc/sys/net/ipv4/conf/eth0/arp_announce echo 1 > /proc/sys/net/ipv4/conf/all/arp_ignore echo 2 > /proc/sys/net/ipv4/conf/all/arp_announce ifconfig lo:0 192.168.1.10 netmask 255.255.255.255 broadcast 192.168.1.10 up ifconfig lo:1 192.168.1.11 netmask 255.255.255.255 broadcast 192.168.1.11 up ifconfig lo:2 192.168.1.12 netmask 255.255.255.255 broadcast 192.168.1.12 up # Set the hard limit to 50000 file descriptors. The script below starts # multiple daemons. Only one needs this high limit. It will set the soft # limit itself. ulimit -H -n 50000 if [ -x /home/phil/cpp_alert_server/live_server/start_all ]; then su phil -c /home/phil/cpp_alert_server/live_server/start_all & fi