Re: Restarting Networking in Debian
On Wed, 22 Sep 2010 12:41:31 -0400, Carlos Mennens wrote:
> What is the deal now with 'restarting' networking services in Debian 5 &
> Squeeze? I use to be able to run the command:
> /etc/init.d/networking restart
> Now when I do so in Debian, I get a strange error:
> Running /etc/init.d/networking restart is deprecated because it may not
> enable again some interfaces ... (warning). Reconfiguring network
Yep, I noticed in Squeeze yesterday.
> Not to mention any changes I made to my static IP address in
> '/etc/network/interfaces' didn't take effect which leads me to believe
> the command I ran above didn't restart the network daemon or is not
> forcing it to look for changes.
> I asked on the forums and I can't get a straight answer as to what is
> the official command in Debian to restart the networking daemon? There
> can't be six different answers and someone on the dev team has to have a
> official correct command to do something as simple as restarting
The only two available options seem to be "stop|start", so...
/etc/init.d/networking stop && /etc/init.d/networking start
...should do the trick.
It would be nice to know the reason for the "restart" deprecation, though.