]> jspc29.x-matter.uni-frankfurt.de Git - hadesdaq.git/commitdiff
working start and stop
authorHades DAQ <hadaq@hades33.gsi.de>
Wed, 21 Mar 2018 16:55:46 +0000 (17:55 +0100)
committerHades DAQ <hadaq@hades33.gsi.de>
Wed, 21 Mar 2018 16:55:46 +0000 (17:55 +0100)
hmon/start.sh
hmon/stop.sh

index 009f62668eaa966f37077ff5a5cd4c190ea09264..dd03cdcc7c005d34af067d97480bc8a2848d4e0e 100755 (executable)
@@ -3,6 +3,8 @@
 #Mount RAM file system
 #mount -t tmpfs none /var/spool/ramdisk  -o size=256m
 
+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..."
@@ -13,7 +15,7 @@ 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 &
 fi
 
-killall -f speakdaemon.pl
+pkill -f speakdaemon.pl
 cd /home/hadaq/trbsoft/hadesdaq/hmon/
 
  # cd permanent
index ff61650e5324a1a3d380c7038301953add042a81..00058a406fb924508031878c8bd0b2bbe380c26d 100755 (executable)
@@ -1,10 +1,16 @@
 #!/bin/bash
 
 echo "  <Hmon>    Killing all sub-processes..."
+
 pkill -f "\./hmon_.+\.pl" 2>/dev/null 1>/dev/null
-killall hmon*.sh 2>/dev/null 1>/dev/null
-killall hmon_tail 2>/dev/null 1>/dev/null
-killall hmon_ssh 2>/dev/null 1>/dev/null
+pkill -f "sh -c \./hmon_.*\.sh"
+
+pkill -f "lxhadeb06 ping -i 100 lxhadesdaqp"
+pkill -f "/usr/bin/perl -w \./speakdaemon.pl"
+pkill -f "/usr/bin/perl -w \./hmon_.*\.sh"
+pkill -f "hmon_tail -n"
+pkill -f "hmon_ssh"
+
 
 # echo "  <Hmon>    Cleaning up..."
 # rm ~/trbsoft/daq/tools/hmon/files/*.htt