Exit Print View

Sun OpenDS Standard Edition 2.2 Command-Line Usage Guide

Get PDF Book Print View
 

Document Information

Before You Start

Server Administration Commands

control-panel

create-rc-script

dsconfig

dsreplication

gicadm

manage-tasks

setup

start-ds

status

stop-ds

uninstall

vdp-control-panel

vdp-setup

vdp-uninstall

windows-service

Data Administration Commands

LDAP Client Utilities Commands

Other Commands

General Tool Usage Information

windows-service

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

Synopsis

windows-service [options]

Description

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.

Command 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 server as a Windows service.

-e, --enableService

Enable server as a Windows service.

-s, --serviceState

Display the state of the server as a Windows service.

General Options
-?, -H, --help

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

-V, --version

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

Examples

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.

Example 43
Enabling the Server as a Windows Service

The following command enables the server as a Windows service:

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

The following command disables the server as a Windows service:

$ windows-service -d
Example 45
Displaying a Status

The following command displays a status of the 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