Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- description "CoSo TeamUp Zuora Order Processing Service"
- author "Adrian Arias"
- start on runlevel [23]
- stop on shutdown
- setuid teamup
- setgid teamup
- #expect fork
- respawn
- env DEFAULTFILE=/etc/default/zuora-order-processor
- #pre-start script
- # stop the job from continuing if the config file is not found.
- # [ ! -f "$DEFAULTFILE" ] && { stop; exit 0; }
- # source the config file
- # . "$DEFAULTFILE"
- # stop the job from continuing if the service is expressly disabled.
- # [ -z "$ENABLED" ] && { stop; exit 0; }
- #logger -i -t "$UPSTART_JOB" "INFO: ENABLED=$ENABLED, CLASSPATH=$CLASSPATH"
- #end script
- script
- if [ -f "$DEFAULTFILE" ]; then
- . "$DEFAULTFILE"
- fi
- export CLASSPATH="$CLASSPATH"
- export OPTS="$OPTS"
- export NUC_DBNAME="$NUC_DBNAME"
- export NUC_DBPASSWORD="$NUC_DBPASSWORD"
- export NUC_DBSERVER="$NUC_DBSERVER"
- export NUC_DBUSER="$NUC_DBUSER"
- export NUC_LOGTOCONSOLE="$NUC_LOGTOCONSOLE"
- logger -i -t "$UPSTART_JOB" "INFO: ENABLED=$ENABLED, CLASSPATH=$CLASSPATH, OPTS=$OPTS"
- java $OPTS com.nextuc.services.ZuoraOrderProcessor >> /var/log/teamup/services/zuora-order-processor.log 2>&1
- end script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement