salt/pkg/salt-master.upstart.rhel6

17 lines
454 B
Plaintext
Raw Normal View History

description "Salt Master"
start on runlevel [2345]
stop on runlevel [!2345]
limit nofile 100000 100000
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
# invoke salt-master via su so that /etc/environment is read
exec su -c salt-master
end script