salt/debian/salt-master.upstart
Xavier Henner 59ebeca5e1 Make /etc/salt-master usefull
Add environment variable to have a custom CONFIG_DIR
2014-12-11 14:58:47 +01:00

20 lines
488 B
Plaintext

description "Salt Master"
start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [!2345]
limit nofile 100000 100000
env CONFIG_DIR=/etc/salt
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
exec salt-master -c $CONFIG_DIR
end script