File: killd

package info (click to toggle)
dqs 3.1.8-9
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 8,908 kB
  • ctags: 9,887
  • sloc: ansic: 87,447; sh: 2,952; makefile: 442; yacc: 247; lex: 94; perl: 83; csh: 51; fortran: 24; awk: 16
file content (24 lines) | stat: -rwxr-xr-x 274 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh 

SPOOL_DIR=/usr/local/DQS/SPOOL

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

pid_file=/dev/null

pid_file=$SPOOL_DIR/dqs_execd/$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