Repository Clean Initialization
- Installation as defined in the deployment scripts
- if tomcat is running, stop gently the repository service using the method startShutDown with admin certificate (this will stop the queuing and complete the pending registrations and backup the statistics)
To gently shutdown a running repository service:
- After having stopped the Repository service, stop Tomcat /etc/init.d/tomcat5 stop
- start mysql
- create empty database with the name matching the one configured in eticsRepositoryWSRepository.xml
- grant all permission on repository to the user configured in eticsRepositoryWSRepository.xml
- create empty directory as configured in eticsRepositoryWSConfiguration.xml (usually /home/repository) token @@repository_root@@
- create empty directory called datastore inside the repository root directory
- if the AFS copy is enabled and tested in fake directories, create also those ones (volatileRoot and registeredRoot)
- grant read/write access on this directory and children to the user running tomcat (usually tomcat4)
- start tomcat
- at this point the webservice notices that the DB is existing but empty and then creates the tables in DB and the basic structure in the root directory
- verify that the logs (usually /tmp/eticsRepositoryWSLog.log) include "Repository service successfully initialized..."
--
LorenzoDini - 11 Jun 2009
Topic revision: r2 - 2009-08-25
- unknown