Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 263712
Collapse All | Expand All

(-)src-native-new/bin/ACStart.sh (-10 / +8 lines)
Lines 72-84 Link Here
72
#
72
#
73
# Check if ACServer is running by querying the system process list
73
# Check if ACServer is running by querying the system process list
74
#
74
#
75
ps -ae | grep "ACServer" | wc -l | awk '{
75
RUNNING=`ps -ae | grep "ACServer" | wc -l`
76
	if( $1 -ne 0 ) {
76
if [ $RUNNING -ne 0 ];then
77
		print "ACServer started successfully."
77
    echo "ACServer started successfully."
78
		exit 0
78
    exit 0
79
	}
79
else
80
	else {
80
    echo "ACServer failed to start."
81
		print "ACServer failed to start."
81
    exit 1
82
		exit 1
82
fi
83
	}
84
}'
(-)src-native-new/bin/ACStop.sh (-4 / +11 lines)
Lines 37-45 Link Here
37
RUNNING=`ps -ae | grep "ACServer" | wc -l`
37
RUNNING=`ps -ae | grep "ACServer" | wc -l`
38
if [ $RUNNING -ne 0 ];then
38
if [ $RUNNING -ne 0 ];then
39
	ACServer -shutdown "$@"
39
	ACServer -shutdown "$@"
40
        echo "ACServer stopped."
40
	sleep 2
41
        exit 0
41
	RUNNING=`ps -ae | grep "ACServer" | wc -l`
42
	if [ $RUNNING -ne 0 ];then
43
		echo "ACServer failed to shutdown."
44
		exit 1
45
	else
46
    	echo "ACServer stopped."
47
    	exit 0
48
    fi
42
else
49
else
43
        echo "ACServer is not currently running."
50
    echo "ACServer is not currently running."
44
        exit 0
51
    exit 0
45
fi
52
fi

Return to bug 263712