Automated script for creating apg-services on the RHEL 9.X platform
search cancel

Automated script for creating apg-services on the RHEL 9.X platform

book

Article ID: 388086

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

MnR Installation issue RHEL 9.x

Installation doesn't support RHEL 9.x systemd

apg-services script created under /etc/systemd/system is of init.d script and not systemd script.

Auto restart of services post server reboot will not work.

Environment

Watch4net / MnR - 7.x versions supported on RHEL 9.x platform

Cause

MnR installation on RHEL 9.x platform still insists on /etc/init.d directory which is deprecated on RHEL systems 9.x. It does not use systemd script causing the issue w.r.t auto restart of services post server reboot.

Resolution

As a workaround, please use the attached automated script for creating apg-services on the RHEL 9.x platform, specifically to resolve issues encountered during server reboots:

  • Place the attached script Binary_script_for_APG_SERVICES.sh in the /opt directory on the FrontEnd(FE)server.
  • Change the script's permissions using: 
    chmod u+x Binary_script_for_APG_SERVICES.sh 
  • Run the script with the -i option and enter the password for the different M&R servers when prompted: 
    ./Binary_script_for_APG_SERVICES.sh -i
  • Run the script again to create the services on all servers: 
    ./Binary_script_for_APG_SERVICES.sh -i

Additional Information

  • The script Binary_script_for_APG_SERVICES.sh must be executed only from the M&R FrontEnd server in a distributed setup. 
  • The script will automatically takeall M&R server hosts from /opt/APG/Custom/WebApps-Resources/Default/centralized-management/servers.xml
  • If any SSH connections fail after running the script, you need to run: 
    ./Binary_script_for_APG_SERVICES.sh -r ssh

Attachments

Binary_script_for_APG_SERVICES.sh get_app