[NTLUG:Discuss] adding domain without restart the servers

Kenneth Loafman ken at lt.com
Fri Jan 14 12:24:18 CST 2005


m m wrote:
> All:
> 
> How do I adding a new domain without restart http, dns, network... server?
> 
> I host my web site on the hosting company, I notice that when I add a 
> domain,
> they don't need to restart their servers. but if I add a new domain to 
> my linux box, I have to modify the http.conf, dns files, etc/hosts... 
> and restart these services.
> 
> Can some show/point me out the scripts/sources?

Take a look into /etc/init.d.  Scripts there have a start, stop, and 
restart command.  Some have reload and other options.  The system uses 
these during init and shutdown.

/etc/init.d/network restart

will restart the network, however, if all you change is /etc/hosts, that 
is not at all necessary.  The software will notice the change and reload 
as needed.

Restarting apache will not cause loss of data, so that's safe.

Bind can be refreshed without incident with 'rndc'.

Essentially everything except the kernel can be restarted in Linux 
without having to reboot.  Remember, its not Windows.

...Ken



More information about the Discuss mailing list