mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
08d90a7beb
RHEL6 doesn't use the net-device-up and local-filesystems targets, meaning that if someone decides to use this upstart config then the master/minion/syndic does not start on boot. We don't deploy upstart configs in our RPMs, but this provides a working upstart config file for those that wish to use it.
17 lines
454 B
Plaintext
17 lines
454 B
Plaintext
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
|