|Skip Navigation Links|
|Exit Print View|
|Oracle Fusion Middleware Command-Line Usage Guide for Oracle Unified Directory 11g Release 1 (11.1.1)|
The windows-service command manually enables or disables the server as a Windows service.
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. For more information, see System Requirements and Certification in Oracle Fusion Middleware Installation Guide for Oracle Unified Directory.
Example 1-49 Enabling the Server as a Windows Service
The following command enables the server as a Windows service:
$ windows-service -e
Example 1-50 Disabling the Server as a Windows Service
The following command disables the server as a Windows service:
$ windows-service -d
Example 1-51 Displaying a Status
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.