简体   繁体   中英

Ubuntu Upstart event when network is up and when the system is about to shutdown

I need upstart event names for the following two events.

  1. The.networking is up and running
  2. When the system is about to shut down

Any script in /etc.network/if-up.d/ will be execute when the.network is up. Any script in /etc.network/if-down.d/ will be execute when the.network is down.

Event for.networking up and running (ie any device but lo ):

start on.net-device-up IFACE!=lo

Event for going to shutdown/reboot (Runlevels 0 or 6):

start on starting rc RUNLEVEL=[06]

(More info in the Upstart Cookbook .)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM