blob: f09c0918e22c86f59eab6f50c36a6342b814099d [file] [log] [blame]
david_williams0d3f08d2010-08-19 04:49:50 +00001#!/usr/bin/env bash
2
3
4PIDFILE=ccxvfb.pid
5
6if [ -f ${PIDFILE} ] ; then
7 echo " Killing Xvfb process from PID file"
8 PID=`cat ${PIDFILE}`
9 kill -3 $PID
10 # if permission denied, for example, then be sure not to remove PID file
11 if [ $? ]
12 then
13 if kill -9 $PID ; then
14 echo " Xvfb process stopped"
15 rm -f ${PIDFILE}
16 else
17 echo " Xvfb process could not be stopped"
18 fi
19 else
20 echo " Could not kill the process."
21 fi
22else
23 echo " PID file (${PIDFILE}) does not exist."
24 echo " Either Xvfb not running, or PID file has been deleted"
25fi
david_williamse4d7ae32010-08-24 16:11:23 +000026echo;
27
28#!/usr/bin/env bash
29
30
31PIDFILE=ccmetacity.pid
32
33if [ -f ${PIDFILE} ] ; then
34 echo " Killing METACITY process from PID file"
35 PID=`cat ${PIDFILE}`
36 kill -3 $PID
37 # if permission denied, for example, then be sure not to remove PID file
38 if [ $? ]
39 then
40 if kill -9 $PID ; then
41 echo " METACITY process stopped"
42 rm -f ${PIDFILE}
43 else
44 echo " METACITY process could not be stopped"
45 fi
46 else
47 echo " Could not kill the process."
48 fi
49else
50 echo " PID file (${PIDFILE}) does not exist."
51 echo " Either METACITY not running, or PID file has been deleted"
52fi
david_williams0d3f08d2010-08-19 04:49:50 +000053echo;