2.7 Starting SpringSource dm Server When the Operating System Starts

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

OptionDescription
consoleStarts SpringSource dm Server in the foreground. Useful for validating that the service wrapper is configured correctly.
installWindows only. Installs SpringSource dm Server as a Windows service.
startStarts 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.
stopStops 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.
removeWindows only. Removes SpringSource dm Server as a Windows service.