Expand my Community achievements bar.

SOLVED

AEM Instance restart step in GITHUB Runner

Avatar

Level 6

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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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?lan...

 

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

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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?lan...

 

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

Avatar

Level 8

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