-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathassassin.sh
More file actions
executable file
·51 lines (43 loc) · 798 Bytes
/
assassin.sh
File metadata and controls
executable file
·51 lines (43 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
# sleep 8.5 hours and then send abort signal to all hd_root processes
# so they will core dump
#
# This is to debug a problem with jobs hanging at the end of the process
# until slurm timeout kills them. That does not result in a core dump
# probably due to it being killed from outside of the container.
echo 'assassin.sh starting'
date
sleep 26950
echo 'Sending abort'
date
pkill -6 hd_root
sleep 10
echo 'Sending term'
date
pkill -15 hd_root
sleep 10
echo 'Sending 9 ints'
date
pkill -2 hd_root
sleep 1
pkill -2 hd_root
sleep 1
pkill -2 hd_root
sleep 1
pkill -2 hd_root
sleep 1
pkill -2 hd_root
sleep 1
pkill -2 hd_root
sleep 1
pkill -2 hd_root
sleep 1
pkill -2 hd_root
sleep 1
pkill -2 hd_root
sleep 1
pkill -2 hd_root
sleep 10
echo 'Sending quit'
pkill -3 hd_root
sleep 10