Skip to content

Instantly share code, notes, and snippets.

@gunlock
Last active August 29, 2015 14:05
Show Gist options
  • Save gunlock/016dc201473851ba4441 to your computer and use it in GitHub Desktop.
Save gunlock/016dc201473851ba4441 to your computer and use it in GitHub Desktop.
dcm4chee run script
#!/bin/bash
export JBOSS_HOME=/home/pacs/dcm4chee
JBOSS_CLASSPATH=$JBOSS_HOME/bin/run.jar
JBOSS_NATIVE_DIR="$JBOSS_HOME/bin/native"
JBOSS_ENDORSED_DIRS="$JBOSS_HOME/lib/endorsed"
#enable remote access to jboss services and web interface
JBOSS_BIND_ADDR=${JBOSS_BIND_ADDR:-"0.0.0.0"}
OPTS="-server -Djava.net.preferIPv4Stack=true -Djava.library.path=$JBOSS_NATIVE_DIR"
OPTS="$OPTS -classpath $JBOSS_CLASSPATH org.jboss.Main"
export PATH="$JBOSS_HOME/bin:$PATH"
java -D$1 $OPTS -b $JBOSS_BIND_ADDR >/dev/null 2>&1 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment