small changes in configuration scripts for storage manager
authorjniedzie <jeremi.niedziela@cern.ch>
Fri, 10 Oct 2014 09:29:55 +0000 (11:29 +0200)
committerjniedzie <jeremi.niedziela@cern.ch>
Mon, 13 Oct 2014 06:18:04 +0000 (08:18 +0200)
.gitignore
EVE/macros/saveViews.C
MONITOR/alistoragemanager/clearAll.sh
MONITOR/alistoragemanager/setupStorageDatabase.sh

index ec8f2ad..476cf41 100644 (file)
@@ -1,3 +1,6 @@
+EVE/macros/saveViews.C
+MONITOR/alistoragemanager/clearAll.sh
+MONITOR/alistoragemanager/setupStorageDatabase.sh
 .gitignore
 AliRootXcode/
 AliRootXcode.xcodeproj/
index 5f83254..922fe80 100644 (file)
@@ -181,7 +181,8 @@ TString getEventInfo()
                esd->GetESDRun()->GetBeamType(),
                esd->GetRunNumber(),
                AliEveEventManager::CurrentEventId(),
-               AliRawEventHeaderBase::GetTypeName(esd->GetEventType())
+                            "PHYSICS_EVENT"
+                            /*AliRawEventHeaderBase::GetTypeName(esd->GetEventType())*/
                );
   }
 
index c86a83b..1372864 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 rm -fr /opt/reco/run197669/
 rm -fr /opt/reco/log/run197669.log
-rm -fr ~/storedFiles/
+rm -fr /local/storedFiles/
 mysql -u storage -pstorage123 -e "drop database storage"
 ./setupStorageDatabase.sh
index 29f110e..3832390 100755 (executable)
@@ -1,12 +1,13 @@
 #!/bin/bash
+DB_PASS=""
 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"
-MAX_SIZE="30000000"
+STORAGE_PATH="/local/storedFiles"
+MAX_SIZE="3000000"
 MAX_OCCUPATION="80"
 REMOVE_PERCENT="60"
 EVENTS_IN_FILE="5"
@@ -16,10 +17,10 @@ STORAGE_SERVER="localhost"      # IP of machine running alistorage
 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(\
+mysql -u root -p$DB_PASS -e "create database if not exists $DATABASE;"
+mysql -u root -p$DB_PASS -e "grant ALL PRIVILEGES on $DATABASE.* to '$USER'@'$HOST' identified by '$PASS';"
+mysql -u root -p$DB_PASS -e "use $DATABASE;"
+mysql -u root -p$DB_PASS -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,\