The windows-service command manually enables or disables the directory server as a Windows service.
The windows-service command can be used to manually enable (or disable) the directory 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 directory server as a Windows service.
Enable directory server as a Windows service.
Display the state of the directory server as a Windows service.
Display command-line usage information for the utility and exit without making any attempt to stop or restart the server.
Display the version information for the directory server and exit rather than attempting to run this command.
The following examples show how to use the directory 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 Directory Server System Requirements in Sun OpenDS Standard Edition 2.0 Installation Guide.
The following command enables the directory server as a Windows service:
$ windows-service -e
The following command disables the directory server as a Windows service:
$ windows-service -d
The following command displays a status of the directory server as a Windows service:
$ windows-service -s
Server started/stopped successfully.
Service not found.
Server start error. Server already stopped
Server stop error.