Log In | Get Help   
Home My Page Projects Code Snippets Project Openings BonFIRE VCOC Demonstration Kit
Summary Activity SCM Files Wiki
[bonfiredemokit] View of /virt-cluster/killproc.sh
[bonfiredemokit] / virt-cluster / killproc.sh Repository:
ViewVC logotype

View of /virt-cluster/killproc.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14 - (download) (as text) (annotate)
Mon Oct 8 09:46:28 2012 UTC (11 years, 7 months ago) by agomez
File size: 879 byte(s)
New license from GPL to Apache
Cleaning some files that are not used.
#!/bin/bash
#
# BonFIRE Virtual Clusters on Federated Clouds Demonstration Kit
#
# Copyright (c) Fundacion Centro Tecnologico de Supercomputacion de Galicia 2012
# 
# License Apache Software
#
# The research leading to these results has received funding from 
# the European Community's Seventh Framework Programme (FP7/2007-2013) 
# under agreement number 257386
#
# This software is provided with ABSOLUTELY NO WARRANTY
# 
LOG="/var/log/killproc.log"
touch $LOG
while [[ True ]]
do
	echo "-------" >> $LOG
	ps x | grep "python /mnt/lib/configureServer.py" | grep -v "grep" >> $LOG
	PID=`ps x | grep "python /mnt/lib/configureServer.py" | grep -v "grep" | awk {'print $1'}`
	if [[ $PID != "" ]]
	then
		echo "Trying to kill $PID" >> $LOG
		kill -9 $PID
		echo "Killed" >> $LOG
		exit
	else
		echo "Not found, sleeping" >> $LOG
		sleep 5
	fi
done

root@forge.cesga.es
ViewVC Help
Powered by ViewVC 1.0.0  

Powered By FusionForge