Source variables before starting reco on remote machine.
authorjniedzie <jeremi.niedziela@cern.ch>
Tue, 11 Nov 2014 10:57:19 +0000 (11:57 +0100)
committerjniedzie <jeremi.niedziela@cern.ch>
Tue, 11 Nov 2014 10:59:55 +0000 (11:59 +0100)
MONITOR/alionlinereco/onlinereco.conf
MONITOR/alistoragemanager/AliDIMListenerThread.cxx
MONITOR/alistoragemanager/setupStorageDatabase.sh

index c66ebd6..289a1f5 100644 (file)
@@ -1,5 +1,5 @@
 server.host:                             tcp://*
-server.port:                             5024
+server.port:                             123
 server.saveRecoDir:                      /local/reco
 cdb.defaultStorage:                      local:///local/cdb
 cdb.specificStoragePath1:                local:///local/reco/GRP/GRP/Data
@@ -17,10 +17,10 @@ reco.writeAlignment:                     1
 reco.cleanESD:                           0
 reco.detectors:                          ALL  -PHOS -EMCAL
 logbook.host:                            localhost
-logbook.port:                            3306
-logbook.db:                              logbook
-logbook.user:                            dqm
-logbook.pass:                            dqm123
+logbook.port:                            124
+logbook.db:                              database
+logbook.user:                            user
+logbook.pass:                            pass123
 
 //data source (local, run)
 data.source                              local
index f4a1450..be58af3 100644 (file)
@@ -99,7 +99,7 @@ void AliDIMListenerThread::StartOfRun(int run)
     cout<<"AliDIMListenerThread -- SOR signal received for run:"<<run<<endl;
    
     // Kill reconstruction and start new one
-    gSystem->Exec(Form("ssh -n -f %s@%s \"killall alionlinereco;alionlinereco %d\"",fOnlineReconstructionUsername.c_str(),fOnlineReconstructionHostname.c_str(),run));
+    gSystem->Exec(Form("ssh -n -f %s@%s \". ~/EventServerTesting/setEnv.sh;killall alionlinereco;alionlinereco %d\"",fOnlineReconstructionUsername.c_str(),fOnlineReconstructionHostname.c_str(),run));
 }
 
 void AliDIMListenerThread::EndOfRun(int run)
index 3a0c1f3..c4a735a 100644 (file)
@@ -1,27 +1,27 @@
 #!/bin/bash
 HOST="localhost"   # IP of machine on which mysql database is located
-PORT="5055"
-DATABASE="storage"
-USER="storage"
-PASS="storage123"
-TABLE="events"
-STORAGE_PATH="/Users/Jerus/storedFiles"
+PORT="123"
+DATABASE="database"
+USER="user"
+PASS="pass123"
+TABLE="table"
+STORAGE_PATH="/some/path/"
 MAX_SIZE="300000000"
 MAX_OCCUPATION="100"
 REMOVE_PERCENT="50"
 EVENTS_IN_FILE="20"
-EVENT_SERVER="pcald39fix"   # IP of machine running alieventserver
-EVENT_SERVER_USER="edis"
-EVENT_SERVER_PORT="5024"
+EVENT_SERVER="localhost"   # IP of machine running alieventserver
+EVENT_SERVER_USER="user"
+EVENT_SERVER_PORT="124"
 STORAGE_SERVER="localhost"      # IP of machine running alistorage
-STORAGE_SERVER_USER="edis"
-STORAGE_SERVER_PORT="5066"      # server thread communication port
-STORAGE_CLIENT_PORT="5088"      # client thread communication port
-XML_SERVER_PORT="5099"          # server of xml files
-mysql -u root -pdaq -e "create database if not exists $DATABASE;"
-mysql -u root -pdaq -e "grant ALL PRIVILEGES on $DATABASE.* to '$USER'@'$HOST' identified by '$PASS';"
-mysql -u root -pdaq -e "use $DATABASE;"
-mysql -u root -pdaq -e "CREATE TABLE IF NOT EXISTS $DATABASE.$TABLE(\
+STORAGE_SERVER_USER="user"
+STORAGE_SERVER_PORT="125"      # server thread communication port
+STORAGE_CLIENT_PORT="126"      # client thread communication port
+XML_SERVER_PORT="127"          # server of xml files
+mysql -u root -ppassword -e "create database if not exists $DATABASE;"
+mysql -u root -ppassword -e "grant ALL PRIVILEGES on $DATABASE.* to '$USER'@'$HOST' identified by '$PASS';"
+mysql -u root -ppassword -e "use $DATABASE;"
+mysql -u root -ppassword -e "CREATE TABLE IF NOT EXISTS $DATABASE.$TABLE(\
 run_number int(6) NOT NULL,\
 event_number int(6) NOT NULL,\
 system text(7) DEFAULT NULL,\