Skip to content

Instantly share code, notes, and snippets.

@dlanderson
Created October 18, 2013 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlanderson/6bea68e69f02c94e3cf1 to your computer and use it in GitHub Desktop.
Save dlanderson/6bea68e69f02c94e3cf1 to your computer and use it in GitHub Desktop.
(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