rust_collector

obuntu-/etc/init/failsafe.conf

Feb 27th, 2014
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.46 KB | None | 0 0
  1. # failsafe
  2.  
  3. description "Failsafe Boot Delay"
  4. author "Clint Byrum <[email protected]>"
  5.  
  6. start on filesystem and net-device-up IFACE=lo
  7. stop on static-network-up or starting rc-sysinit
  8.  
  9. emits failsafe-boot
  10.  
  11. console output
  12.  
  13. script
  14.         # Determine if plymouth is available
  15.         if [ -x /bin/plymouth ] && /bin/plymouth --ping ; then
  16.                 PLYMOUTH=/bin/plymouth
  17.         else
  18.                 PLYMOUTH=":"
  19.         fi
  20.  
  21.     # The point here is to wait for 2 minutes before forcibly booting
  22.     # the system. Anything that is in an "or" condition with 'started
  23.     # failsafe' in rc-sysinit deserves consideration for mentioning in
  24.     # these messages. currently only static-network-up counts for that.
  25.  
  26.         sleep 20
  27.  
  28.     # Plymouth errors should not stop the script because we *must* reach
  29.     # the end of this script to avoid letting the system spin forever
  30.     # waiting on it to start.
  31.         $PLYMOUTH message --text="Waiting for network configuration..." || :
  32.         sleep 40
  33.  
  34.         $PLYMOUTH message --text="Waiting up to 60 more seconds for network config$
  35.        sleep 59
  36.        $PLYMOUTH message --text="Booting system without full network configuratio$
  37.  
  38.     # give user 1 second to see this message since plymouth will go
  39.     # away as soon as failsafe starts.
  40.         sleep 1
  41.     exec initctl emit --no-wait failsafe-boot
  42. end script
  43.  
  44. post-start exec logger -t 'failsafe' -p daemon.warning "Failsafe of 120 seconds re$
Advertisement
Add Comment
Please, Sign In to add comment