From: Hades DAQ Date: Wed, 21 Mar 2018 16:55:46 +0000 (+0100) Subject: working start and stop X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=aecc4fcc0ce31eecb338689be8170cb37b2a1d1a;p=hadesdaq.git working start and stop --- diff --git a/hmon/start.sh b/hmon/start.sh index 009f626..dd03cdc 100755 --- a/hmon/start.sh +++ b/hmon/start.sh @@ -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 " Renewing tunnels and environment..." @@ -13,7 +15,7 @@ echo " 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 diff --git a/hmon/stop.sh b/hmon/stop.sh index ff61650..00058a4 100755 --- a/hmon/stop.sh +++ b/hmon/stop.sh @@ -1,10 +1,16 @@ #!/bin/bash echo " 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 " Cleaning up..." # rm ~/trbsoft/daq/tools/hmon/files/*.htt