Community
Participate
Working Groups
#
# Check if ACServer is running by querying the system process list
ps -ae | grep "ACServer" | wc -l | awk '{
RUNNING=`ps -ae | grep "ACServer" | wc -l`
if( $1 -ne 0 ) {
if [ $RUNNING -ne 0 ];then
print "ACServer started successfully."
echo "ACServer started successfully."
exit 0
}
else
else {
echo "ACServer failed to start."
print "ACServer failed to start."
exit 1
fi
}'
ACServer -shutdown "$@"
echo "ACServer stopped."
sleep 2
echo "ACServer failed to shutdown."
echo "ACServer is not currently running."