Register and manage an instance as a Windows service (service)
- Last Updated: January 17, 2024
- 2 minute read
- OpenEdge
- Version 12.8
- Documentation
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
|
Parameters
- general_options
- Specify one or more of the general TCMAN options. Run
tcman.bat help serviceto 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 thePR_DISPLAYNAMEand/orPR_DESCRIPTIONvariables 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_DISPLAYNAMEProgress Application Server alias_name PR_DESCRIPTIONProgress 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 foroepas1:set PR_DISPLAYNAME=PAS ROOT Server set PR_DESCRIPTION=Progress Application Server tcman service oepas1 registerNote: 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 theJAVA_HOMEenvironment variable. If thePR_JAVA_HOMEvariable is set to a JDK location, thePR_JAVA_HOMEvalue takes precedence over theJAVA_HOMEvariable. - 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
–woption. - -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:
|