torquebox.conf 471 B

123456789101112131415161718192021222324
  1. description "This is an upstart job file for TorqueBox"
  2. pre-start script
  3. bash << "EOF"
  4. mkdir -p /var/log/torquebox
  5. chown -R torquebox /var/log/torquebox
  6. EOF
  7. end script
  8. # start on started network-services
  9. # stop on stopped network-services
  10. start on runlevel [2345]
  11. stop on runlevel [!2345]
  12. respawn
  13. limit nofile 4096 4096
  14. script
  15. bash << "EOF"
  16. su - torquebox
  17. /opt/torquebox/current/jboss/bin/standalone.sh >> /var/log/torquebox/torquebox.log 2>&1
  18. EOF
  19. end script