Most people will use DAISY Pipeline 2 as a standalone desktop application. It is easy to install and ready to go. But the Pipeline can also be used as a service to which client programs can connect, through a web API.
There are several use cases:
Choose a package from the downloads page that includes the server, then follow the installation instructions for that package.
TBD
If the Pipeline was installed via the Debian package, the service is
launched automatically on system startup. To start or stop the service
manually, use service daisy-pipeline2 start|stop|restart|status
.
In order to start the service, execute the file pipeline2
. Where
exactly this file is located on the file system depends on the
installation. To shut down the service press Ctrl-C
.
When using DAISY Pipeline 2 as a service, especially when integrating
it in a custom setup, you probably want to configure a thing or
two. Two files are intended to be edited by you for this purpose:
pipeline.properties
and config-logback.xml
. See
Configuration files for details. Where on the
file system these files are located depends on the installation.
TBD
If the Pipeline was installed via the Debian package,
pipeline.properties
and config-logback.xml
are located in
/etc/opt/daisy-pipeline2
. In addition there is a third configuration
file available: /etc/default/daisy-pipeline2
. All available
environment variables listed below, except
for PIPELINE2_DATA
, can be specified in this file in the format
export VAR=value
.
A number of environment variables will influence the program:
JAVA
JAVA_HOME
JAVA_MIN_MEM
-Xms
option.JAVA_MAX_MEM
-Xmx
option.JAVA_PERM_MEM
-XX:PermSize
option.JAVA_MAX_PERM_MEM
-XX:MaxPermSize
option.JAVA_OPTS
JAVA_DEBUG_OPTS
PIPELINE2_DEBUG
is set.PIPELINE2_DEBUG
PIPELINE2_DATA
In addition to the environment variable listed above, all available
user properties can be set
through environment variables as well. For example, the
org.daisy.pipeline.ws.host
property can be set with the environment
variable PIPELINE2_WS_HOST
. The environment variable settings will
have precedence over settings in the pipeline.properties
file.
pipeline2
executableThe following command line arguments are available. Combinations are possible.
remote
PIPELINE2_WS_LOCALFS=false
and PIPELINE2_WS_AUTHENTICATION=true
.local
PIPELINE2_WS_LOCALFS=true
and PIPELINE2_WS_AUTHENTICATION=false
.clean
debug
PIPELINE2_DEBUG=true
.osgi
shell
help
for a list of commands, help COMMAND
for more info about a
specific command.