Created
May 21, 2013 17:54
-
-
Save ruprict/5621817 to your computer and use it in GitHub Desktop.
Torquebox upstart file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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