No init.d on RHEL 9 for Nolio Release Automation automatic startup after a reboot
search cancel

No init.d on RHEL 9 for Nolio Release Automation automatic startup after a reboot

book

Article ID: 371910

calendar_today

Updated On:

Products

CA Release Automation - Release Operations Center (Nolio)

Issue/Introduction

 RHEL 9 by default has no /etc/init.d folder

Environment

Nolio Release Automation 6.8 on RHEL 9

Resolution

To correct the automatic start up of the Nolio server and agent after booting the server, the scripts in systemd can be updated as follows:

[root@some_host_name /]# cat /etc/systemd/system/NolioASAP.service 
[Unit]
Description=Nolio ASAP Service
After=network.target

[Service]
Type=simple
#ExecStart=/etc/init.d/NolioASAP start
ExecStart=/usr/local/ReleaseAutomationServer/./nolio_server.sh start
#ExecStop=/etc/init.d/NolioASAP stop
ExecStop=/usr/local/ReleaseAutomationServer/./nolio_server.sh stop
RemainAfterExit=yes
Restart=on-failure

[Install]
WantedBy=multi-user.target


[root@some_host_name /]# cat /etc/systemd/system/nolioagent.service 
[Unit]
Description=Nolio Deployer Agent Service
After=network.target

[Service]
Type=simple
ExecStart=/usr/local/ReleaseAutomationServer/NolioAgent/nolio_agent.sh start
ExecStop=/usr/local/ReleaseAutomationServer/NolioAgent/nolio_agent.sh stop
RemainAfterExit=yes
Restart=on-failure

[Install]
WantedBy=multi-user.target

Additional Information

For some versions:

[root@some_host_name]# cat /etc/systemd/system/nolioagent.service
[Unit]
Description=Nolio Deployer Agent Service
After=network.target

[Service]
Type=simple
ExecStart=/usr/local/Broadcom/ReleaseAutomationAgent/nolio_agent.sh start
ExecStop=/usr/local/Broadcom/ReleaseAutomationAgent/nolio_agent.sh stop
RemainAfterExit=yes
Restart=on-failure

[Install]
WantedBy=multi-user.target