Name
windows-service — register OpenDJ as a Windows Service
Synopsis
windows-service
{options}
Description
This utility can be used to run OpenDJ directory server as a Windows Service.
Service Options
-c, --cleanupService serviceName
Disable the service and clean up the windows registry information
associated with the provided service name
-d, --disableService
Disable the server as a Windows service and stop the server
-e, --enableService
Enable the server as a Windows service
-s, --serviceState
Provide information about the state of the server as a Windows service
General Options
-V, --version
Display version information
-?, -H, --help
Display usage information
Exit Codes
- 0
The command completed successfully.
- > 0
An error occurred.
Example
The following command registers OpenDJ directory server as a Windows Service.
C:\path\to\opendj\bat> windows-service.bat --enableService
After running this command,
you can manage the service using Windows administration tools.