1
0

salt-minion.upstart.rhel6 579 B

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