Static IP sites disappear after the network has been restarted
crankycronos posted this on Apr 13th 2007 under Ensim Fixes
One of the annoying things about Ensim is that when ever I type in:
# service network restart
my static IP’s seem to vanish and do not respond any more. In fact, all Ensim IP aliases for things like resellers nameservers etc all vanish.
Up until recently, I just been manually binding the IP address to the network card, just like in the good old days. Although it works reliably, it’s not without it’s issues either. For instance, when removing static site domains one has to remember to unbind that IP.
My solution to the problem is to modify the network init script.
wget customensimbackup.com/download/fix_network_init chmod +x fix_network_init chown root.root fix_network_init ./fix_network_init
You should see the network restart, along with the virtualhosting services. The mods are “smart” so if Ensim isn’t installed, it won’t try to start that service.
If you been binding those IP addresses manually, then you can go ahead and unbind them. Oh happy days again.
