The windows-service command manually enables or disables the server as a Windows service.
windows-service [options]
The windows-service command can be used to manually enable (or disable) the server as a Windows service. Windows services are applications similar to UNIX daemons that run in the background and are not in direct control by the user.
The windows-service command accepts an option in either its short form (for example, -d) or its long form equivalent (for example, --disableService):
Disable the service and clean up the Windows registry information associated with the provided service name.
Disable server as a Windows service.
Enable server as a Windows service.
Display the state of the server as a Windows service.
Display command-line usage information for the command and exit without making any attempt to stop or restart the server.
Display the version information for the server and exit rather than attempting to run this command.
The following examples show how to use the server commands. You can use the commands on any UNIX, Linux, or Windows system that has at least the Java SE 5 (at least Sun version 1.5.0_08, preferably the latest version of Java SE 6) runtime environment installed on its target system. For more information, see Sun OpenDS Standard Edition System Requirements in Sun OpenDS Standard Edition 2.2 Installation Guide.
The following command enables the server as a Windows service:
$ windows-service -e
The following command disables the server as a Windows service:
$ windows-service -d
The following command displays a status of the server as a Windows service:
$ windows-service -s
Server started/stopped successfully.
Service not found.
Server start error. Server already stopped
Server stop error.
install-dir\bat\windows-service.bat