1
0

salt-minion.upstart 641 B

1234567891011121314151617181920212223
  1. description "Salt Minion"
  2. start on (net-device-up
  3. and local-filesystems
  4. and runlevel [2345])
  5. stop on runlevel [!2345]
  6. # The respawn in the minion is known to cause problems
  7. # because if the main minion process dies it has done
  8. # so most likely for a good reason. Uncomment these
  9. # two lines to enable respawn
  10. #respawn
  11. #respawn limit 10 5
  12. script
  13. # Read configuration variable file if it is present
  14. [ -f /etc/default/$UPSTART_JOB ] && . /etc/default/$UPSTART_JOB
  15. # Activate the virtualenv if defined
  16. [ -f $SALT_USE_VIRTUALENV/bin/activate ] && . $SALT_USE_VIRTUALENV/bin/activate
  17. exec salt-minion
  18. end script