This document contains a summary of how to start and stop Daisy after the initial installation.
The order in which the processes are started is important, and should be the order in which they are mentioned below.
The command snippets below assume the JAVA_HOME and DAISY_HOME environment variables are set. If they are not set globally, set them each time before executing the commands.
Start MySQL if necessary. Usually MySQL is started together with the operating system (in Windows as a service, in Linux using the /etc/init.d/mysql script), so you don't need to look after this.
cd %DAISY_HOME%\openjms\bin set OPENJMS_HOME=%DAISY_HOME%\openjms startup.bat
cd $DAISY_HOME/openjms/bin export OPENJMS_HOME=$DAISY_HOME/openjms ./startup.sh
cd %DAISY_HOME%\repository-server\bin daisy-repository-server <daisy-data-dir>
cd $DAISY_HOME/repository-server/bin ./daisy-repository-server <daisy-data-dir>
cd %DAISY_HOME%\daisywiki\bin daisy-wiki
cd $DAISY_HOME/daisywiki/bin ./daisy-wiki
The processes should in preference be stopped in reverse order of how they were started. Thus: first the Daisy Wiki, then the Daisy Repository Server, and finally OpenJMS.
For the Daisy Wiki and the Daisy Repository Server, there are no special mechanisms (scripts) to stop them. If they are running in a console, just press Ctrl+C. Otherwise, on Linux/Unix/MacOSX you can kill the process (not a kill -9 but a normal kill, this will nicely end them).
For OpenJMS there is a shutdown script in the openjms/bin directory. You will need to supply the OpenJMS username and password to the shutdown command, which you can find in openjms/config/openjms.xml if you don't know it. The shutdown is then performed as:
shutdown -u admin -p <your-password>
A nice way to start and stop the various processes is by using the wrapper from tanukisoft. See running Daisy as a service.