Starting and stopping Daisy
This document contains a summary of how to start and stop Daisy after the initial installation.
Starting Daisy
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
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.
Start the Daisy Repository Server
Windows
cd %DAISY_HOME%\repository-server\bin daisy-repository-server <daisydata-dir>
Linux/Unix/MacOSX
cd $DAISY_HOME/repository-server/bin ./daisy-repository-server <daisydata-dir>
Start the Daisy Wiki
Windows
cd %DAISY_HOME%\daisywiki\bin daisy-wiki <wikidata-dir>
Linux/Unix/MacOSX
cd $DAISY_HOME/daisywiki/bin ./daisy-wiki <wikidata-dir>
Stopping Daisy
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).
The better way to do all this
A nice way to start and stop the various processes is by using the wrapper from tanukisoft. See running Daisy as a service.



There are no comments.