]> jspc29.x-matter.uni-frankfurt.de Git - hadesdaq.git/commitdiff
changed start and stop to work with master_channels, mt
authorhadaq <jan@lxhadeb07>
Sat, 29 Jan 2022 01:37:34 +0000 (02:37 +0100)
committerhadaq <jan@lxhadeb07>
Sat, 29 Jan 2022 01:37:34 +0000 (02:37 +0100)
hmon/start.sh
hmon/stop.sh
hmon/stopall.sh

index 88ea5cfa03ce35904327ae4008637c22df735d5a..6bdf4074000a7488e2659e3f58dbca64cdbfc7a5 100755 (executable)
@@ -7,15 +7,15 @@ export PERL5LIB="./"
 
 mkdir /dev/shm/hmon
 #Kill old tunnel, make new one. Better: Check if tunnel still exists, if not restart.
-echo "  <Hmon>     Renewing tunnels and environment..."
+echo "  <Hmon>     Renewing environment..."
 
-pgrep -f 'ssh -R 8888' >/dev/null
-if [ $? -eq 1 ]; then
-echo "  <Hmon>     No tunnel found, digging new one";
+#pgrep -f 'ssh -R 8888' >/dev/null
+#if [ $? -eq 1 ]; then
+#echo "  <Hmon>     No tunnel found, digging new one";
 #ssh -f -R 8888:hades33.gsi.de:80 -R 3060:hades33.gsi.de:80 -R 8889:hades33.gsi.de:1234 -R 9999:lxhadeb06p:80  cerberus.x-matter.uni-frankfurt.de -N &a
 #ssh -f -R 8888:hades33.gsi.de:80 -R 3060:hades33.gsi.de:80 cerberus.x-matter.uni-frankfurt.de -N &
-tmux new-session -s cerberus_tunnel -d  'while true; do ssh -R 8888:hades33.gsi.de:80 -R 3060:hades33.gsi.de:80 cerberus.x-matter.uni-frankfurt.de -N -v; sleep 10; done'
-fi
+#tmux new-session -s cerberus_tunnel -d  'while true; do ssh -R 8888:hades33.gsi.de:80 -R 3060:hades33.gsi.de:80 cerberus.x-matter.uni-frankfurt.de -N -v; sleep 10; done'
+#fi
 
 #########
 #ssh hadesp57 pkill -f speakdaemon.pl
@@ -28,11 +28,11 @@ cd /home/hadaq/trbsoft/hadesdaq/hmon/
  # cd ../
 
 export DAQOPSERVER=hadesp31
-mkdir `pwd`/archive
-mkdir `pwd`/qa
-mkdir `pwd`/logs
-mkdir `pwd`/vertex
-mkdir `pwd`/pion
+mkdir -p `pwd`/archive
+mkdir -p `pwd`/qa
+mkdir -p `pwd`/logs
+mkdir -p `pwd`/vertex
+mkdir -p `pwd`/pion
 
 
 #DISPLAY=:0 ssh -f -X lxhadeb06p "ping -i 100 lxhadesdaqp" &>/dev/null &
@@ -43,8 +43,12 @@ mkdir `pwd`/pion
 #sshfs -o allow_other hadaq@lxhadeb06p:/home/hadaq/local/hydra2/online/feb21_master/online/pics/vertex `pwd`/vertex
 #sshfs -o allow_other hadaq@lxhadeb06p:/home/hadaq/local/hydra2/online/feb21/online/pics `pwd`/qa
 
+pkill -f "sshfs -o allow_other hadaq@hadesp66:/home/hades-qa/online/5.34.38/pics"
+sshfs -o allow_other hadaq@hadesp66:/home/hades-qa/online/5.34.38/pics `pwd`/qa
+
 # sshfs -o allow_other hadaq@lxhadeb06p:/data01/tmp/ `pwd`/pion
 
+pkill -f "sshfs -o allow_other hadaq@hadesp63:/home/hadaq/local/tdcmon/dabc/cal"
 sshfs -o allow_other hadaq@hadesp63:/home/hadaq/local/tdcmon/dabc/cal `pwd`/calibration
 
 
@@ -116,7 +120,7 @@ END: {if($r!=0 and eof()) {foreach (@l) {wait}}} ' &
 rm ~/trbsoft/hadesdaq/hmon/files/note.htt
 
 
-ssh hadesp57 'cd /home/hadaq/trbsoft/daq/hmon/; PERL5LIB=. ./speakdaemon.pl 1>/dev/null 2>>/home/hadaq/trbsoft/hadesdaq/hmon/logs/perlerror_speakdaemon' &
+#ssh hadesp57 'cd /home/hadaq/trbsoft/daq/hmon/; PERL5LIB=. ./speakdaemon.pl 1>/dev/null 2>>/home/hadaq/trbsoft/hadesdaq/hmon/logs/perlerror_speakdaemon' &
 ssh hadesp33 'cd /home/hadaq/trbsoft/daq/hmon/; PERL5LIB=. ./speakdaemon.pl 1>/dev/null 2>>/home/hadaq/trbsoft/hadesdaq/hmon/logs/perlerror_speakdaemon' &
 
 sleep 1;
index a8ab4c333cb080550e2e72e80d28eb97e74bf903..bd29db2b78f800c96ffd817249dbeb2846df2379 100755 (executable)
@@ -4,11 +4,10 @@ echo "  <Hmon>    Killing all sub-processes..."
 
 pkill -f "\./hmon_.+\.pl" 2>/dev/null 1>/dev/null
 pkill -f "sh -c \./hmon_.*\.sh"
-pkill -f "lxhadeb06p ping -i 100 lxhadesdaqp"
-pkill -f "/usr/bin/perl -w \./speakdaemon.pl"
-pkill -f "/usr/bin/perl -w \./hmon_.*\.sh"
+pkill -f "/usr/bin/perl \./speakdaemon.pl"
+pkill -f "/usr/bin/perl \./hmon_.*\.sh"
 pkill -f "hmon_tail -n"
-pkill -f "hmon_ssh"
+#pkill -f "hmon_ssh"  # don't do that for a normal daq-restart
 
 
 # echo "  <Hmon>    Cleaning up..."
index 27938607023fbc2483bbe46b8df1f32ad7185a85..7081a3810b3987349e78fba30274a7ce6076c0b4 100755 (executable)
@@ -1,9 +1,17 @@
 #!/bin/bash
 
+
 killall hmon_permanent_tail
 cd permanent
 killall hmon*.pl 2>/dev/null 1>/dev/null
 cd ../
+
+pkill -f "sshfs -o allow_other hadaq@hades66:/home/hades-qa/online/5.34.38/pics"
+pkill -f "sshfs -o allow_other hadaq@hadesp63:/home/hadaq/local/tdcmon/dabc/cal"
+
+
+pkill hmon_ssh
+
 ./stop.sh;
 
 # echo "  <Hmon>    Killing all sub-processes..."