Exit Print View

Sun OpenDS Standard Edition 2.0 Command-Line Usage Guide

Get PDF Book Print View
 

Document Information

Directory Server Administration Tools

create-rc-script

dsconfig

dsreplication

manage-tasks

setup

status

start-ds

stop-ds

uninstall

upgrade

windows-service

Data Administration Tools

LDAP Client Utilities

Other Tools

General Tool Usage Information

windows-service

The windows-service command manually enables or disables the directory server as a Windows service.

Synopsis

windows-service options

Description

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.

Utility Options

The windows-service command accepts an option in either its short form (for example, -d) or its long form equivalent (for example, --disableService):

-c,--cleanupService service-name

Disable the service and clean up the Windows registry information associated with the provided service name.

-d, --disableService

Disable directory server as a Windows service.

-e, --enableService

Enable directory server as a Windows service.

-s, --serviceState

Display the state of the directory server as a Windows service.

General Options
-?, -H, --help

Display command-line usage information for the utility and exit without making any attempt to stop or restart the server.

-V, --version

Display the version information for the directory server and exit rather than attempting to run this command.

Examples

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.

Example 35
Enabling the Directory Server as a Windows Service

The following command enables the directory server as a Windows service:

$ windows-service -e
Example 36
Disabling the Directory Server as a Windows Service

The following command disables the directory server as a Windows service:

$ windows-service -d
Example 37
Displaying a Status

The following command displays a status of the directory server as a Windows service:

$ windows-service -s
Exit Codes
0

Server started/stopped successfully.

1

Service not found.

2

Server start error. Server already stopped

3

Server stop error.

Location

install-dir\bat\windows-service.bat

Related Commands

setup

uninstall