salt-master.upstart 447 B

1234567891011121314151617
  1. description "Salt Master"
  2. start on (net-device-up
  3. and local-filesystems
  4. and runlevel [2345])
  5. stop on runlevel [!2345]
  6. limit nofile 100000 100000
  7. script
  8. # Read configuration variable file if it is present
  9. [ -f /etc/default/$UPSTART_JOB ] && . /etc/default/$UPSTART_JOB
  10. # Activate the virtualenv if defined
  11. [ -f $SALT_USE_VIRTUALENV/bin/activate ] && . $SALT_USE_VIRTUALENV/bin/activate
  12. exec salt-master
  13. end script