2013-11-17 01:07:14 +00:00
|
|
|
description "Salt Master"
|
|
|
|
|
|
|
|
start on (net-device-up
|
|
|
|
and local-filesystems
|
|
|
|
and runlevel [2345])
|
|
|
|
stop on runlevel [!2345]
|
|
|
|
limit nofile 100000 100000
|
|
|
|
|
2014-12-11 13:58:47 +00:00
|
|
|
env CONFIG_DIR=/etc/salt
|
|
|
|
|
2013-11-17 01:07:14 +00:00
|
|
|
script
|
|
|
|
# Read configuration variable file if it is present
|
|
|
|
[ -f /etc/default/$UPSTART_JOB ] && . /etc/default/$UPSTART_JOB
|
|
|
|
|
2014-06-30 21:14:14 +00:00
|
|
|
# Activate the virtualenv if defined
|
|
|
|
[ -f $SALT_USE_VIRTUALENV/bin/activate ] && . $SALT_USE_VIRTUALENV/bin/activate
|
|
|
|
|
2014-12-11 13:58:47 +00:00
|
|
|
exec salt-master -c $CONFIG_DIR
|
2013-11-17 01:07:14 +00:00
|
|
|
end script
|