gearman-job-server.conf 580 B

1234567891011121314151617181920212223242526
  1. description "Upstart configuration for Gearman Job Server"
  2. author "Goran Miskovic <goran.v.miskovic@gmail.com>"
  3. # Start on startup
  4. # Upstart itself emits a single event called startup
  5. start on startup
  6. stop on runlevel [016]
  7. respawn
  8. pre-start script
  9. logger -is -t "$UPSTART_JOB" "INFO: Starting Gearman Job Server!"
  10. end script
  11. setuid gearman
  12. setgid gearman
  13. exec /usr/sbin/gearmand
  14. post-start script
  15. logger -is -t "$UPSTART_JOB" "INFO: Gearman Job Server started!"
  16. end script
  17. post-stop script
  18. logger -is -t "$UPSTART_JOB" "INFO: Gearman Job Server stopped!"
  19. end script