at v192 37 lines 1.8 kB view raw
1--- ./scripts/CrashPlanEngine 2014-02-19 23:17:19.000000000 +0000 2+++ ./scripts/CrashPlanEngine.1 2014-07-24 17:36:37.330333581 +0100 3@@ -11,7 +11,7 @@ 4 5 cd $TARGETDIR 6 7- nice -n 19 $JAVACOMMON $SRV_JAVA_OPTS -classpath $FULL_CP com.backup42.service.CPService > $TARGETDIR/log/engine_output.log 2> $TARGETDIR/log/engine_error.log & 8+ nice -n 19 $JAVACOMMON $SRV_JAVA_OPTS -classpath $FULL_CP com.backup42.service.CPService > $VARDIR/log/engine_output.log 2> $VARDIR/log/engine_error.log & 9 10 if [[ $! -gt 0 ]]; then 11 echo $! > $PIDFILE 12@@ -26,7 +26,7 @@ 13 14 echo "Using Ubuntu 9.04 startup" 15 16- start-stop-daemon -v --pidfile $PIDFILE --make-pidfile --background --chdir $TARGETDIR --start --nicelevel 19 --exec $JAVACOMMON -- $SRV_JAVA_OPTS -classpath $FULL_CP com.backup42.service.CPService > $TARGETDIR/log/engine_output.log 2> $TARGETDIR/log/engine_error.log 17+ start-stop-daemon -v --pidfile $PIDFILE --make-pidfile --background --chdir $TARGETDIR --start --nicelevel 19 --exec $JAVACOMMON -- $SRV_JAVA_OPTS -classpath $FULL_CP com.backup42.service.CPService > $VARDIR/log/engine_output.log 2> $VARDIR/log/engine_error.log 18 19 # This test isn't as useful as one might like; start-stop-daemon can't accurately report the state of child processes when --background is used. 20 # We use this mainly to report the specific error value returned by start-stop-daemon if something goes wrong, but be aware that a return value 21@@ -91,7 +91,6 @@ 22 DESC="CrashPlan Engine" 23 NAME=CrashPlanEngine 24 DAEMON=$TARGETDIR/lib/com.backup42.desktop.jar 25-PIDFILE="$TARGETDIR/${NAME}.pid" 26 27 if [[ -f $TARGETDIR/install.vars ]]; then 28 . $TARGETDIR/install.vars 29@@ -100,6 +99,8 @@ 30 exit 1 31 fi 32 33+PIDFILE="$VARDIR/${NAME}.pid" 34+ 35 if [[ ! -f $DAEMON ]]; then 36 echo "Could not find JAR file $DAEMON" 37 exit 0