description "This is an upstart job file for TorqueBox" pre-start script bash << "EOF" mkdir -p /var/log/torquebox chown -R torquebox /var/log/torquebox EOF end script # start on started network-services # stop on stopped network-services start on runlevel [2345] stop on runlevel [!2345] respawn limit nofile 4096 4096 script bash << "EOF" su - torquebox /opt/torquebox/current/jboss/bin/standalone.sh >> /var/log/torquebox/torquebox.log 2>&1 EOF end script