That's what I do. It's more precise. Restarting all of networking for a single
interface change seems like using a slegde hammer.
Jimmy Thrasibule wrote:
>> I think that Nick's idea is a good one, stop the network if the
>resulted
>> file is different from the new one and then copy it.
>
>Oops,
> I think that Nick's idea is a good one, stop the network if the resulted
> file is different from the new one and then copy it.
Oops, I was talking about Neil's idea. But I think I got the solution
here. As I list all the interfaces that are about to change, I will just
call ifup/ifdown for each
> In general it's done on an interface by interface basis. The commands ifdown
> and ifup are almost always used rather than /etc/init.d/networking. The init
> script itself just calls ifdown -a or ifup -a anyway. Debian never expects
> all interfaces to be altered in one shot unless you're on t
Forum: CFEngine Help
Subject: Re: Execute command before reparation
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,25219,25228#msg-25228
Nick: agreed.
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.o
In general it's done on an interface by interface basis. The commands ifdown
and ifup are almost always used rather than /etc/init.d/networking. The init
script itself just calls ifdown -a or ifup -a anyway. Debian never expects all
interfaces to be altered in one shot unless you're on the conso
I thought the important take away was networking should be stopped before
changing the interface settings. And started only after the edit was complete.
Restart just runs stop start iirc, but it does them back to back no time for
the edit in-between.
no-re...@cfengine.com wrote:
>Forum: CFEngi
Forum: CFEngine Help
Subject: Re: Execute command before reparation
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,25219,25225#msg-25225
The sure way to restart networking in Debian is /etc/init.d/networking stop;
/etc/init.d/networking start I do not know why that is
What is the recommended way of restarting networking after making changes in
Debian? That is the command you should execute then, instead of
"/etc/init.d/networking restart".
I haven't used Debian in a while, but I can't believe you are expected to stop
network services before making any change
Forum: CFEngine Help
Subject: Re: Execute command before reparation
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,25219,25223#msg-25223
I know what you want. If the interfaces file is too different after the change
the restart may not remove unwanted interfaces. I sugg
Hi Brian,
> In this case you don't have to.
>
> After editing `/etc/network/interfaces` you can execute
> `/etc/init.d/networking restart` to safely & completely apply the new
> configuration.
The problem is that Debian wants to avoid the use of
`/etc/init.d/networking restart`
Running /et
10 matches
Mail list logo