Skip to content
Snippets Groups Projects
Commit 7f0aac0b authored by david_williams's avatar david_williams
Browse files

tweek Xvfb handling

parent 132f3dc3
No related branches found
No related tags found
No related merge requests found
...@@ -65,29 +65,3 @@ echo ...@@ -65,29 +65,3 @@ echo
echo " remember to check that X virtual frame buffer is running for display :$DISPLAYNUMBER for headless unit tests"; echo " remember to check that X virtual frame buffer is running for display :$DISPLAYNUMBER for headless unit tests";
ps -ef | grep Xvfb ps -ef | grep Xvfb
echo; echo;
PIDFILE=cc.xvfbpid
echo;
if [ -f ${PIDFILE} ] ; then
echo " Killing Xvfb process from PID file"
PID=`cat ${PIDFILE}`
kill -3 $PID
# if permission denied, for example, then be sure not to remove PID file
if [ $? ]
then
if kill -9 $PID ; then
echo " Xvfb process stopped"
rm -f ${PIDFILE}
else
echo " Xvfb process could not be stopped"
fi
else
echo " Could not kill the process."
fi
else
echo " PID file (${PIDFILE}) does not exist."
echo " Either Xvfb not running, or PID file has been deleted"
fi
echo;
...@@ -21,4 +21,28 @@ else ...@@ -21,4 +21,28 @@ else
echo " PID file (${PIDFILE}) does not exist." echo " PID file (${PIDFILE}) does not exist."
echo " Either CC not running, or PID file deleted" echo " Either CC not running, or PID file deleted"
fi fi
echo echo;
\ No newline at end of file
PIDFILE=cc.xvfbpid
if [ -f ${PIDFILE} ] ; then
echo " Killing Xvfb process from PID file"
PID=`cat ${PIDFILE}`
kill -3 $PID
# if permission denied, for example, then be sure not to remove PID file
if [ $? ]
then
if kill -9 $PID ; then
echo " Xvfb process stopped"
rm -f ${PIDFILE}
else
echo " Xvfb process could not be stopped"
fi
else
echo " Could not kill the process."
fi
else
echo " PID file (${PIDFILE}) does not exist."
echo " Either Xvfb not running, or PID file has been deleted"
fi
echo;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment