#!/bin/sh 

SPOOL_DIR=/usr/local/DQS/SPOOL

IFS="."
HOST=`hostname`
set $HOST

pid_file=/dev/null

pid_file=$SPOOL_DIR/qmaster/$1/pid_file

echo $pid_file

pid=0
pid=`cat $pid_file`


echo "Delivering SIGTERM"
kill -15 $pid
sleep 3

echo "Delivering SIGKILL"
kill -9 $pid
