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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/820681

Title:
  ufw upstart job is stopped on runlevel 1 but not started back up on
  transition from 1 to 2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ufw/+bug/820681/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to