Created
August 3, 2014 18:10
-
-
Save ghidinelli/c6762f9148401cec4325 to your computer and use it in GitHub Desktop.
DJB Supervise script for running ColdFusion 10
This file contains hidden or 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/sh | |
| exec 2>&1 | |
| echo "Starting ColdFusion 10 cfusion..." | |
| RUNTIME_USER="apache" | |
| export CF_DIR="/opt/coldfusion10/cfusion" | |
| . $CF_DIR/bin/parseargs $CF_DIR/bin/jvm.config | |
| export JVM_ARGS | |
| export CLASSPATH=$CF_DIR/runtime/bin/tomcat-juli.jar:$CF_DIR/bin/cf-bootstrap.jar:$JAVA_CLASSPATH | |
| export JAVA_EXECUTABLE="/usr/java/latest/jre/bin/java" | |
| export LD_LIBRARY_PATH="$CF_DIR/lib:$CF_DIR/lib/_ilnx21/bin:$JAVA_LIBRARYPATH" | |
| exec setuidgid $RUNTIME_USER nohup $JAVA_EXECUTABLE -classpath $CLASSPATH $JVM_ARGS com.adobe.coldfusion.bootstrap.Bootstrap -start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment