Last active
August 29, 2015 14:05
-
-
Save gunlock/016dc201473851ba4441 to your computer and use it in GitHub Desktop.
dcm4chee run script
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
#!/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