Re: ifstated body executing before init?

2011-03-28 Thread Kapetanakis Giannis
Any thought on this? Giannis On 25/03/11 16:48, Kapetanakis Giannis wrote: Hi, According to ifstated.conf(5) "The init block is used to initialise the state and is executed each time the state is entered." This should be the first thing to be executed right? In debug I see the body execute

Re: ifstated body executing before init?

2011-03-26 Thread Christian Kildau
Damn, hit send to early. Of course it doesn't work as I expected. Switches directly to umts_start and only delays the mail notification. On Mar 26, 2011, at 10:28 AM, Christian Kildau wrote: > Sorry for hijacking your thread, but this seems related to a problem I have: > > I'm running ifstated

Re: ifstated body executing before init?

2011-03-26 Thread Christian Kildau
Sorry for hijacking your thread, but this seems related to a problem I have: I'm running ifstated to monitor my DSL connection, which my provider disconnects automatically every 24h. But instead of starting my backup via UMTS, I'd like ifstated to wait 30s or so, and if pppoe0 is still down, it mi

ifstated body executing before init?

2011-03-25 Thread Kapetanakis Giannis
Hi, According to ifstated.conf(5) "The init block is used to initialise the state and is executed each time the state is entered." This should be the first thing to be executed right? In debug I see the body executed first. Isn't the code bellow more reasonable? --- /tmp/ifstated.c Fri