-
-
Save dlanderson/6bea68e69f02c94e3cf1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(salt-dev)root@dev-ak1-salt:/mnt/salt-dlanderson# cat /etc/init/salt-master.conf | |
description "Salt Master" | |
start on (net-device-up | |
and local-filesystems | |
and runlevel [2345]) | |
stop on runlevel [!2345] | |
limit nofile 100000 100000 | |
script | |
# Set a default path to virtualenv | |
SALT_VIRTUALENV=/root/virtualenv/salt-dev | |
# Read configuration variable file if it is present | |
[ -f /etc/default/$UPSTART_JOB ] && . /etc/default/$UPSTART_JOB | |
[ -f $SALT_VIRTUALENV/bin/activate ] && . $SALT_VIRTUALENV/bin/activate | |
exec salt-master | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment