salt-master.upstart.rhel6 385 B

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