Skip to content

Instantly share code, notes, and snippets.

@bsima
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bsima/20a16f13e132b0a4e12f to your computer and use it in GitHub Desktop.
Save bsima/20a16f13e132b0a4e12f to your computer and use it in GitHub Desktop.
Immutant Ubuntu Setup
# Shamelessly stolen from http://marianoguerra.org/posts/install-immutant-10-full-as-a-service-on-debianubuntu.html
# and updated with new Immutant versions.
#
# This is executable, so you can simply curl and execute it
# install needed packages
sudo apt-get install wget unzip openjdk-7-jdk daemon
# create a dir to download files
mkdir ~/soft
cd ~/soft
# download immutant 1.1.3 full
wget http://downloads.immutant.org/release/org/immutant/immutant-dist/1.1.3/immutant-dist-1.1.3-slim.zip
unzip immutant-dist-1.1.3-slim.zip
# create user that will run the service
sudo adduser jboss-as
# create required folders
sudo cp -r immutant-1.1.3-slim/jboss /usr/share/jboss-as/
sudo mkdir -p /var/log/jboss-as /var/run/jboss-as/
# set permissions
sudo chown -R jboss-as.jboss-as /var/log/jboss-as /var/run/jboss-as /usr/share/jboss-as/
# get and install init.d script
sudo wget https://gist.github.com/marianoguerra/6211268/raw/6e248a66670f0ef247d9aa169873c011b275da86/jboss-as-standalone.sh -O /etc/init.d/jboss-as-standalone
sudo chmod u+x /etc/init.d/jboss-as-standalone
# register the service
update-rc.d jboss-as-standalone defaults
# start it
sudo /etc/init.d/jboss-as-standalone start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment