2012-12-13 13:03:23 -08:00
|
|
|
description "Salt Master"
|
2012-11-23 13:35:58 -08:00
|
|
|
|
|
|
|
start on (net-device-up
|
|
|
|
and local-filesystems
|
|
|
|
and runlevel [2345])
|
|
|
|
stop on runlevel [!2345]
|
2013-06-01 15:50:05 +09:00
|
|
|
limit nofile 100000 100000
|
2012-11-23 13:35:58 -08:00
|
|
|
|
2013-03-01 13:24:55 -08:00
|
|
|
script
|
2013-09-11 14:14:14 -06:00
|
|
|
# Read configuration variable file if it is present
|
|
|
|
[ -f /etc/default/$UPSTART_JOB ] && . /etc/default/$UPSTART_JOB
|
|
|
|
|
2013-10-18 11:56:32 -06:00
|
|
|
# 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-master
|
2013-03-01 13:24:55 -08:00
|
|
|
end script
|