Skip to content

Instantly share code, notes, and snippets.

@crimeminister
Created October 10, 2012 00:24
Show Gist options
  • Save crimeminister/3862384 to your computer and use it in GitHub Desktop.
Save crimeminister/3862384 to your computer and use it in GitHub Desktop.
An Upstart configuration file for Immutant
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