summaryrefslogtreecommitdiff
path: root/sysutils/linux-crashplan/files/patch-scripts_CrashPlanEngine
blob: 3e12174457d507b266a81251a8235755740f4508 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- scripts/CrashPlanEngine.orig	2016-04-24 10:38:26 UTC
+++ scripts/CrashPlanEngine
@@ -11,7 +11,7 @@ standard_startup() {
 	
 	cd $TARGETDIR
 		
-	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 & 
+	nice -n 19 $JAVACOMMON $SRV_JAVA_OPTS -classpath $FULL_CP com.backup42.service.CPService > $LOGDIR/engine_output.log 2> $LOGDIR/engine_error.log & 
 	
 	if [[ $! -gt 0 ]]; then
 		echo $! > $PIDFILE
@@ -80,7 +80,7 @@ do_startup() {
 }
 
 _findpid() {
-	/bin/ps -eo 'pid,cmd'| grep 'app=CrashPlanService' | grep -v grep | awk '{ print $1 }'
+	/bin/ps -ewwo 'pid,command'| grep 'app=CrashPlanService' | grep -v grep | awk '{ print $1 }'
 }
 
 SCRIPT=$(ls -l $0 | awk '{ print $NF }')