2012-12-13 23:12:01 +00:00
|
|
|
description "Salt Minion"
|
2012-11-23 21:35:58 +00:00
|
|
|
|
|
|
|
start on (net-device-up
|
|
|
|
and local-filesystems
|
|
|
|
and runlevel [2345])
|
|
|
|
stop on runlevel [!2345]
|
|
|
|
|
2013-04-10 22:47:40 +00: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 23:12:01 +00:00
|
|
|
|
2013-03-01 21:24:55 +00:00
|
|
|
script
|
2013-09-11 20:14:14 +00:00
|
|
|
# Read configuration variable file if it is present
|
|
|
|
[ -f /etc/default/$UPSTART_JOB ] && . /etc/default/$UPSTART_JOB
|
|
|
|
|
2013-10-18 17:56:32 +00:00
|
|
|
# Activate the virtualenv if defined
|
|
|
|
[ -f $SALT_USE_VIRTUALENV/bin/activate ] && . $SALT_USE_VIRTUALENV/bin/activate
|
|
|
|
|
2013-09-11 20:14:14 +00:00
|
|
|
exec salt-minion
|
2013-03-01 21:24:55 +00:00
|
|
|
end script
|