Skip to content

Instantly share code, notes, and snippets.

@ghidinelli
Created August 3, 2014 18:10
Show Gist options
  • Select an option

  • Save ghidinelli/c6762f9148401cec4325 to your computer and use it in GitHub Desktop.

Select an option

Save ghidinelli/c6762f9148401cec4325 to your computer and use it in GitHub Desktop.
DJB Supervise script for running ColdFusion 10
#!/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