Website Downloads Documentation Knowledgebase Wiki Issue tracker Commercial support

Running services on Unix

Manually starting, stopping and restarting the service scripts

Manually starting, stopping or restarting the services is done via wrapper scripts, provided in the services directory of either your repository data directory or your wiki data directory:

In case you have no services directory, see the service installation instructions.

Daisy Repository

To manually startup, stop or restart the daisy repository, simply run the wrapper script daisy-repository-server-service inside the directory service below your daisy data directory, using the correct parameter (start | stop | restart):

$cd /path/to/your/daisy/datadir/service
$ ./daisy-repository-server-service
Usage: ./daisy-repository-server-service { console | start | stop | restart | dump }
$ ./daisy-repository-server-service start
Starting Daisy CMS Repository Server instance...

Daisy Wiki

To manually startup, stop or restart the daisy wiki, simply run the wrapper script daisy-wiki-service inside the directory service below your daisy wikidata directory, using the correct parameter (start | stop | restart):

$cd /path/to/your/daisy/datadir/service
$ ./daisy-wiki-service
Usage: ./daisy-wiki-service { console | start | stop | restart | dump }
$ ./daisy-wiki-service start
Starting CMS Wiki Web Application instance...

Installation as Unix service

TODO: the following doesn't handle the required sleep between starting the repository and the wiki.

In order to install the daisy repository and/or the daisy wiki as service, simply create links from inside the directory /etc/init.d, points to  the wrapper scripts daisy-repository-server-service and daisy-wiki-service, provided in the services directory of either your daisy data directory or your daisy wikidata directory. Afterwards, place links to the newly created link in the according runlevel directories.

Alternatively, you may use the command chkconfig in order to implement the unix services. For further information, consult the man page.

Testing and debugging the service scripts

In case of problems or startup failures of the services, you may have a look at the log files daisy-repository-server-service.log and daisy-wiki-service.log which can be found in the logs directory of either your daisy data directory or your daisy wiki data directory.
Also, you may start the wrapper scripts interactively, so that the output of the process is redirected to the console. This is simply done by using the parameter console when manually invoking the wrapper scripts daisy-repository-server-service and daisy-wiki-service, provided in the services directory of either your daisy data directory or your daisy wikidata directory.

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