service

Description

Installs EAServer as a Windows service and allows you to manage that service. You can create a Windows service with a particular service name. You can also specify which server to run in the service. You can create multiple services for multiple servers.

Syntax

service.bat [-servicename -name] [-serviceOption]

Option

Description

name

The name of the service. If not specified, the default service name is “EAServer.”

-debug

Runs the service command in debug mode. Run the application from command line for debugging purposes. The service does not need to be installed.

You can simulate and test service stop, pause, and continue behavior on the command line by starting the service with the -debug option. Use Ctrl+C for stop service, Ctrl+Break toggles between pause and continue service.

-start

Starts a service.

-stop

Stops a service.

-install

Installs a service.

-restart

Stops, then starts a service.

-remove

Removes a service.

-config

Reconfigures an already installed service. For example, if you make any changes to settings such as CLASSPATH, and you need the service to reflect the change, run the -config option to reconfigure the service settings stored in the Registry.

-console

Runs the service command in a console window.

Usage

service accepts a -servicename argument. If not specified, the default service name is “EAServer.”

service also accepts any arguments that can be passed to run-server. For example, use -server to specify a particular server to run as a service.