Re: Execute command before reparation

2012-03-11 Thread Jimmy Thrasibule
ifup/ifdown for each interface. --- Jimmy Thrasibule ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: Execute command before reparation

2012-03-11 Thread Jimmy Thrasibule
ndeed, the recommended way is to alter the /etc/network/interfaces file and then call ifdown to deconfigure the interface and ifup to reconfigure it. But for that I need to know which interface changed. I think that Nick's idea is a good one, stop the network if the res

Re: Execute command before reparation

2012-03-11 Thread Jimmy THRASIBULE
the file and start after. Another solution would be to use ifup/ifdown on all interfaces? --- Jimmy Thrasibule ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Execute command before reparation

2012-03-10 Thread Jimmy THRASIBULE
Hi, I am discovering CFEngine3 and I would like to execute a command if a file is about to be repaired. The case here is to stop the Debian networking service if a change must be done on `/et/network/interfaces`. Is that possible? ___ Jimmy THRASIBULE