AEM Instance restart step in GITHUB Runner | Community
Skip to main content
akhilraj
Level 5
September 18, 2023
Solved

AEM Instance restart step in GITHUB Runner

  • September 18, 2023
  • 2 replies
  • 933 views

Hi,

 

We have implemented Github CICD pipe line for Build and Deployments.

Both build and deployments are happening fine in git repo.

 

We are currently looking for Instance restart option/script for Github which needs to add after the deployment step.

 

Is there any curl script exist for author and publish restart so that we can add in Github runner workflow.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by A_H_M_Imrul

Hello @akhilraj,

 

There is no direct command to restart the AEM instance using curl: https://experienceleague.adobe.com/docs/experience-manager-65/administering/operations/curl.html?lang=en#common-operational-aem-curl-commands

 

However, since you are using Github CI/CD runner instance, you have the option to access the AEM servers using SSH and run the following commands: 

 

 

- sudo /sbin/service cq5 restart (instance manged AMS) - sh ./crx-quickstart/bin/stop && ./crx-quickstart/bin/start (on Premise)

 

Thanks

2 replies

A_H_M_Imrul
Community Advisor
A_H_M_ImrulCommunity AdvisorAccepted solution
Community Advisor
September 18, 2023

Hello @akhilraj,

 

There is no direct command to restart the AEM instance using curl: https://experienceleague.adobe.com/docs/experience-manager-65/administering/operations/curl.html?lang=en#common-operational-aem-curl-commands

 

However, since you are using Github CI/CD runner instance, you have the option to access the AEM servers using SSH and run the following commands: 

 

 

- sudo /sbin/service cq5 restart (instance manged AMS) - sh ./crx-quickstart/bin/stop && ./crx-quickstart/bin/start (on Premise)

 

Thanks

sherinregi-1
Community Advisor
Community Advisor
September 18, 2023

Hi @akhilraj 

There is no direct curl command to restart the instance apart from executing the shell commands, however if you need to restart the VMstat alone you can use the below one 

 

curl -u admin:admin -d "shutdown_type=Restart" http://localhost:4502/system/console/vmstat

 

https://github.com/paulrohrbeck/aem-links/blob/master/curl_cheatsheet.md

 

Hope it helps