Created
October 10, 2012 00:24
-
-
Save crimeminister/3862384 to your computer and use it in GitHub Desktop.
An Upstart configuration file for Immutant
This file contains 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 Immutant" | |
pre-start script | |
bash << "EOF" | |
mkdir -p /var/log/immutant | |
chown -R immutant /var/log/immutant | |
EOF | |
end script | |
# Ubuntu doesn't yet emit the network-services event: | |
# https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/701576 | |
# | |
#start on started network-services | |
#stop on stopping network-services | |
start on (local-filesystems and net-device-up IFACE!=lo) | |
stop on runlevel [016] | |
respawn | |
limit nofile 4096 4096 | |
script | |
bash << "EOF" | |
su - immutant | |
/opt/immutant/current/jboss/bin/standalone.sh >> /var/log/immutant/immutant.log 2>&1 | |
EOF | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment