Purpose

(Windows only) Register or unregister an instance as a Windows service. The instance must be stopped. After an instance is registered, you can start, stop, or check the status of the service with the tcman service action. This action must be performed from the instance directory (%CATALINA_BASE%/bin) rather than the PAS for OpenEdge installation directory (%CATALINA_HOME%/bin).

Syntax

tcman.bat service [general_options]alias_name { register | unregister | start | stop [-F [-w seconds]] | status }

Parameters

general_options
Specify one or more of the general TCMAN options. Run tcman.bat help service to see which general options are appropriate.
alias_name

A required parameter that specifies the name of a PAS instance that was created using tcman create.

register
Create a new Windows service that runs the named PAS instance alias_name..
Set the PR_DISPLAYNAME and/or PR_DESCRIPTION variables to change the display name and description of the PAS instance service that appears in the Windows Service utility (Services tab of the Task Manager). The defaults for these variables are:
Variable Default
PR_DISPLAYNAME Progress Application Server alias_name
PR_DESCRIPTION Progress Application Server (Tomcat 9) – http://www.progress.com
Set these variables before you register the instance. For example, if you wanted to change the defaults for oepas1:
set PR_DISPLAYNAME=PAS ROOT Server
set PR_DESCRIPTION=Progress Application Server 
tcman service oepas1 register			
Note: To register an instance as a Windows service, you must have JDK 17 installed on your computer. Installing JDK 17 is a prerequisite for installing OpenEdge. The instance registration process uses the JAVA_HOME environment variable. If the PR_JAVA_HOME variable is set to a JDK location, the PR_JAVA_HOME value takes precedence over the JAVA_HOME variable.
unregister
Delete the Windows service that runs the named PAS instance alias_name
start

Start the Windows service that corresponds to the named PAS instance alias_name. The Windows service may also be started using the Windows service console or the SC command line utility.

stop [-F [-w seconds]]

Stop the Windows service that corresponds to the named PAS instance alias_name. The Windows service may also be stopped using the Windows service console or the SC command line utility.

-F

Kill the sever process if it does not stop after a default wait time (10 seconds on Windows). Change the default wait interval by using the –w option.

-w seconds

Optionally specify the number of seconds to wait before killing a server process.

status

The registration status of the Windows service corresponding to the named PAS instance alias_name. The Windows service's status may be monitored using the Windows service console or SC command line utility

Example

Register the default instance oepas1 as a Windows service, then start, check status, stop, and unregister:

tcman service oepas1 register
  oepas1 service is registered

tcman service oepas1 start
  oepas1 started

tcman service oepas1 status
  Service oepas1 is running

tcman service oepas1 stop
  oepas1 is stopped

tcman service oepas1 unregister
  oepas1 is unregistered
Note: If you make changes to your environment, you must unregister and re-register your instance.