If you need SpringSource dm Server to start automatically when the operating system starts, you should run SpringSource dm Server as a Windows service or a UNIX background process. You can do this by using a service wrapper script provided with SpringSource dm Server.
The SERVER_HOME/bin/service
directory contains a service wrapper script for each supported operating system. Before running the
appropriate script, you must either set the SERVER_HOME
environment variable to point to the SpringSource dm Server
installation directory or edit the file SERVER_HOME/bin/service/conf/wrapper.conf
.
If you run the service wrapper script with no option, it will display the available options. The most useful options are described in the following table.
Table 2.1. Service Wrapper Options
Option | Description |
---|---|
console | Starts SpringSource dm Server in the foreground. Useful for validating that the service wrapper is configured correctly. |
install | Windows only. Installs SpringSource dm Server as a Windows service. |
start | Starts SpringSource dm Server in the background. On UNIX operating systems, you may call
the wrapper script with this option during initialization, for example as part of init.d processing.
SpringSource dm Server console output appears in SERVER_HOME/wrapper.log . |
stop | Stops the SpringSource dm Server background process. On UNIX operating systems, you may call
the wrapper script with this option during termination, for example as part of init.d processing. |
remove | Windows only. Removes SpringSource dm Server as a Windows service. |