Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ### VARIABLES
- LIB=/home/icon/gpsTracksService/build
- CONFIG=/home/icon/services/devices
- JAVA="/opt/sun-jdk-1.6.0.18/bin/java"
- CLASSPATH="home/icon/services/devices/devices.jar:$LIB/commons-dbcp-1.2.2.jar:$LIB/commons-logging-1.0.2.jar:$LIB/commons-pool-1.5.4.jar:$LIB/gson-1.5.jar:$LIB/gtsdb.jar:$LIB/gtsutils.jar:$LIB/jdbc-postgresql.jar:$LIB/log4j-1.2.15.jar:$LIB/org.springframework.asm-3.0.2.RELEASE.jar:$LIB/org.springframework.beans-3.0.2.RELEASE.jar:$LIB/org.springframework.context-3.0.2.RELEASE.jar:$LIB/org.springframework.core-3.0.2.RELEASE.jar:$LIB/org.springframework.expression-3.0.2.RELEASE.jar:$LIB/wartools.jar:applicationContext.xml"
- SERVER_NAME="devices"
- SLOG_NAME="devices"
- PID_FILE="/var/run/${SLOG_NAME}.pid"
- read status
- if [$status eq start]; then
- $echo "Starting Script Devices"
- ${JAVA} -classpath "${CLASSPATH}" com.rexintegra.gps.tracks.processing.MainProcessingUnit &
- javaPID=$!
- $echo "'${SERVER_NAME}' backgrounded with process id '${javaPID}'"
- echo ${javaPID} > ${PID_FILE}
- else echo "Command not found"
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement