-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathkill_remotes.sh
More file actions
executable file
·40 lines (31 loc) · 865 Bytes
/
kill_remotes.sh
File metadata and controls
executable file
·40 lines (31 loc) · 865 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
#!/bin/bash
#
# Kill the remote_vme's
#
#
#
. coda_conf_functions
# Get list of ROC hosts
coda_conf_get_component_list ROC
ROC_hosts=${CODA_HOSTNAME_LIST[@]}
# kill the remote_vme connections for the ROCs
echo "Killing local remote_vme startROC.sh connections"
pkill -f "remote_vme.*startROC.sh"
# now kill the ROC, if it's still runnin gon the remote host
for host in $ROC_hosts
do
echo "Killing ROC on $host"
ssh $host pkill coda_roc
done
# Get list of PEB hosts
coda_conf_get_component_list PEB
PEB_hosts=${CODA_HOSTNAME_LIST[@]}
# kill the remote_vme connections for the PEBs
echo "Killing local remote_vme startPEB.sh connections"
pkill -f "remote_vme.*startPEB.sh"
# now kill the ROC, if it's still runnin gon the remote host
for host in $PEB_hosts
do
echo "Killing PEB on $host"
ssh $host pkill -f org.jlab.coda.emu.EmuFactory
done