Skip to content

Instantly share code, notes, and snippets.

@ruprict
Created May 21, 2013 17:54
Show Gist options
  • Save ruprict/5621817 to your computer and use it in GitHub Desktop.
Save ruprict/5621817 to your computer and use it in GitHub Desktop.
Torquebox upstart file
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
respawn
limit nofile 4096 4096
script
bash << "EOF"
su - torquebox
/opt/torquebox/jboss/bin/standalone.sh >> /var/log/torquebox/torquebox.log 2>&1
EOF
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment