#!/bin/bash
+
notifyall.sh "DAQ" "<I> DAQ is going to be restarted." "STARTUP" &
#Stop monitoring scripts
ssh hades33 "cd /home/hadaq/trbsoft/hadesdaq/hmon; ./stop.sh" &
ssh hades33 "killall -USR1 speakdaemon.pl" &
killall mdc_calibration_masks.pl;
-
+
#Stop Eventbuilder
echo " <EB> Killing EB, scheduling restart";
# 2012-10-5: 06:50 removed, busy several times.
#switchport.pl 0x1052 3 off #0x214a
+#2014-04-16 frquent reinits
+switchport.pl 0x1151 8 off #2257
+
#Retransmission on as early as possible
trbcmd setbit 0xfffd 0x22 0x08000000 #enable retransmission on oep
trbcmd setbit 0xfe11 0x22 0x08000000 #enable retransmission on mdchub
#startup for MDC-tests
time ./startup.pl -f main_hades.script -eb off -o file \
- -m TOF -m RPC -m WALL -m RICH -m SHOWER \
+ -m TOF -m RPC -m NOWALL -m RICH -m NOSHOWER \
-m STARTCTS -m NORESET -m CONFIGONLY -m MON_CTS \
- -m MDC -m MDCreg0current -m MDCnomasks -m MDCDATASET -m MDCindiv
+ -m NOMDC
+ # -m MDC -m MDCreg0current -m MDCnomasks -m MDCDATASET -m MDCindiv
########################################
### DO NOT CHANGE ANY MDC SETTINGS HERE - without changing them in reviveoep.pl as well!!!!!!
trbcmd w 0x0003 0xa0f3 0xff1
-/home/hadaq/trbsoft/hadesdaq/utils/move_doublecpu_irq.sh &
-scp /home/hadaq/oper/daq2ora/daq2ora_current.txt hades33:/home/hadaq/trbsoft/hadesdaq/hmon/files/ &
+#/home/hadaq/trbsoft/hadesdaq/utils/move_doublecpu_irq.sh &>/dev/null &
+/home/hadaq/trbsoft/hadesdaq/utils/move_doublecpu_irq.sh &
+
+scp /home/hadaq/oper/daq2ora/daq2ora_current.txt hades33:/home/hadaq/trbsoft/hadesdaq/hmon/files/ 1>/dev/null &
#Start-up finished
#Start Monitoring
echo " <Startup> Restart Monitoring"
/home/hadaq/jan/crashlog.pl #Log timeouts after restart
- nohup ssh hades33 "cd /home/hadaq/trbsoft/hadesdaq/hmon; ./start.sh &" </dev/null 1>/dev/null 2>/dev/null &
- nohup /home/hadaq/trbsoft/hadesdaq/utils/mdc_calibration_masks.pl &
- nohup ssh hades33 "sleep 20; killall -USR2 speakdaemon.pl" 1>/dev/null 2>/dev/null &
- echo " <Startup> Everything done. Closing window."
- disown
+ nohup ssh hades33 "cd /home/hadaq/trbsoft/hadesdaq/hmon; ./start.sh &" </dev/null &>/dev/null &
+ nohup /home/hadaq/trbsoft/hadesdaq/utils/mdc_calibration_masks.pl &>/dev/null &
+ nohup ssh hades33 "sleep 20; killall -USR2 speakdaemon.pl" &>/dev/null &
+ echo " <Startup> Everything done. Closing window automatically after 10 seconds."
+ sleep 10;
+ #disown
+