blob: 17f3898562b0fa2c54098f238a65fa5945e80602 [file] [log] [blame]
david_williamsd4b1fd32008-01-02 04:16:52 +00001#!/bin/sh
2PIDFILE=cc.pid
3echo;
4if [ -f ${PIDFILE} ] ; then
5 echo " Killing CC process from PID file";
6 PID=`cat ${PIDFILE}`
7 kill -3 $PID
8 if kill -9 $PID ; then
9 echo " CC process stopped";
10 else
11 echo " CC process could not be stopped";
12 fi
13 rm -f ${PIDFILE}
14else
15 echo " PID file (${PIDFILE}) does not exist.";
16 echo " Either CC not running, or PID file deleted";
17fi
18echo;