Salesforce

How to autostart AdminService on Linux with systemctl scripts?

« Go Back

Information

 
TitleHow to autostart AdminService on Linux with systemctl scripts?
URL NameHow-to-autostart-AdminService-on-Linux-with-systemctl-scripts
Article Number000178822
EnvironmentProduct: Progress
Version: 9.x
Product: OpenEdge
Version: 10.x, 11.x
OS: Linux
Other: AdminServer, systemctl
Question/Problem Description
​How to auto-start the AdminServer on Linux with a systemctl service file script?
How to ensure the AdminServer remains running on Linux when the root user logs out?
How to start the AdminServer on a Linux Server in a similar to the AdminService on Windows?
What systemctl service commands need to be configured so that the AdminServer autostarts on Linux ?
Steps to Reproduce
Clarifying Information
Error Message
Defect Number
Enhancement Number
Cause
Resolution
Example systemctl service file to start the AdminService.  The following is provided 'as-is'. Any issues will need to be further explored with a Linux Administrator. 


1)  cd  /etc/systemd/system

2)  sudo su

3)  vi admsrvc.service

Change the values in the file sample below for ExecStart and ExecStop to point to the correct installation directory.

Sample systemctl service file

#
[Unit]
Description=AdminService for OpenEdge
After=network.target

[Service]
ExecStart=/usr/dlc/bin/proadsv -start
ExecStop=/usr/dlc/bin/proadsv -stop
Type=forking

[Install]
WantedBy=default.target


4)  To start / stop the AdminServer :
      
$   sudo systemctl daemon-reload​
$   sudo systemctl start admsrvc
$   sudo systemctl stop admsrvc

Once the AdminService is started with the "systemctl start admsrvc" command, all databases and ubrokers configured to autostart will be started by the AdminServer.

5) To enable the service to start at boot time:

sudo systemctl enable admsrvc

Note: Although the steps above refers to the AdminServer, the same methodology can be applied in order to start PASOE instances and fathom ( See example in  Openedge 12 fathom won't start
Workaround
Notes
Progress Articles:

 How to autostart AdminService on Linux with chkconfig scripts?   
 AdminServer slow to start on Linux   
 Quick guide on how to configure multiple Tomcat instances running as service on linux   
 Openedge 12 fathom won't start
Can a Linux systemd service status used to start/stop the adminserver be kept in sync with the proadsv start/stop commands?

NOTE: Some operating systems may have a helper script to convert System V init scripts to SystemD style scripts.
See if the version of your OS has a script similar to updaterc.d and review instructions on migrating System V scripts to SystemD usage.
Keyword Phrase
Last Modified Date8/15/2024 7:58 PM

Powered by