Re: Restarting Networking in Debian
On 2010-09-22, Camaleón <noelamac@gmail.com> wrote:
> On Wed, 22 Sep 2010 21:44:01 +0000, Liam O'Toole wrote:
>
>> On 2010-09-22, Camaleón wrote:
>>
>>> 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.
>>>
>>>
>> Looking at the changelog for the netbase package, it seems that the
>> warning was introduced to address bug 550240[1].
>>
>> 1. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=550240
>
> Thanks :-)
>
> But the explanation is a bit "ethereous":
>
> * Made the init script warn that using the force-reload and restart
> parameters is not a good idea. (Closes: #550240)
>
> Okay, "force-reload" and "restart" should be avoided (they're "weak").
> So, the next logical question is, how one safely restarts the network
> service? :-?
>
On a per-interface basis, one can do this:
ifdown <interface-name> && ifup <interface-name>
But I don't know a general way of restarting all interfaces. Neither
does the maintainer of netbase, it would appear :-)
--
Liam O'Toole
Cork, Ireland
Reply to: