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%\repository-server\bin daisy-repository-server <daisydata-dir>
cd $DAISY_HOME/repository-server/bin ./daisy-repository-server <daisydata-dir>
cd %DAISY_HOME%\daisywiki\bin daisy-wiki <wikidata-dir>
cd $DAISY_HOME/daisywiki/bin ./daisy-wiki <wikidata-dir>
The processes should by preference be stopped in reverse order of how they were started. Thus: first the Daisy Wiki, and then the Daisy Repository Server, then possibly MySQL.
There are no special mechanisms (scripts) to stop the Daisy Wiki and the Daisy Repository Server. 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).
A nice way to start and stop the various processes is by using the wrapper from tanukisoft. See running Daisy as a service.