Website Downloads Documentation Knowledgebase Wiki Issue tracker Commercial support

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 OpenJMS

Windows

cd %DAISY_HOME%\openjms\bin
set OPENJMS_HOME=%DAISY_HOME%\openjms
startup.bat

Linux/Unix/MacOSX

cd $DAISY_HOME/openjms/bin
export OPENJMS_HOME=$DAISY_HOME/openjms
./startup.sh

Start the Daisy Repository Server

Windows

cd %DAISY_HOME%\repository-server\bin
daisy-repository-server <daisy-data-dir>

Linux/Unix/MacOSX

cd $DAISY_HOME/repository-server/bin
./daisy-repository-server <daisy-data-dir>

Start the Daisy Wiki

Windows

cd %DAISY_HOME%\daisywiki\bin
daisy-wiki

Linux/Unix/MacOSX

cd $DAISY_HOME/daisywiki/bin
./daisy-wiki

Stopping Daisy

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>

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.

Comments (0)
Advertisement

Daisy hosting, installation, support. Workshops and turnkey Daisy CMS projects. Get Daisy from its creators.

outerthought.org

Downloads provided by

SourceForge.net Logo

Open source stats