salt/pkg/salt-minion.upstart

24 lines
641 B
Text
Raw Normal View History

2012-12-13 15:12:01 -08:00
description "Salt Minion"
2012-11-23 13:35:58 -08:00
start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [!2345]
2013-04-10 16:47:40 -06:00
# The respawn in the minion is known to cause problems
# because if the main minion process dies it has done
# so most likely for a good reason. Uncomment these
# two lines to enable respawn
#respawn
#respawn limit 10 5
2012-12-13 15:12:01 -08:00
script
# Read configuration variable file if it is present
[ -f /etc/default/$UPSTART_JOB ] && . /etc/default/$UPSTART_JOB
# Activate the virtualenv if defined
[ -f $SALT_USE_VIRTUALENV/bin/activate ] && . $SALT_USE_VIRTUALENV/bin/activate
2014-03-25 16:10:08 -06:00
exec salt-minion
end script