Comment 2 for bug 820681

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Yes, that should work fine since all of those things will emit their "starting" even before runlevel [2345]. Note that 0 and 6 wouldn't make sense, so I wouldn't include them.

If you want to make absolutely sure it only happens on a resurrection from runlevel 1, you can do it as

start on (starting network-interface
          or starting network-manager
          or starting networking
          or runlevel RUNLEVEL=[2345] PREVLEVEL=1)

I have not tested that syntax, but it should work.

Note that eventually we will need to fix runlevel 1 to actually stop networking and all the network interfaces as well... so when we do that we'll have to revisit both the stop on and the start on.