Restart AEM daily midnight
Hi,
I am looking for an script to re start AEM instance, is there a way to do it in the AEM config ?
Hi,
I am looking for an script to re start AEM instance, is there a way to do it in the AEM config ?
Hi,
If you are using AEM on-premise and AEM has been installed as a system service, you can easily use a "restart" command from the command line, in this scenario, you will have to create a bash script that will invoke the "aem service restart" and this will be scheduled at midnight, you can use "cron" for example to achieve the schedule(1), here you can find the details about this scenario: https://github.com/ksurendra/aem-as-a-service
If you are using AEM on-premise but AEM has not been installed as a system service, you will have to manually stop the AEM instance, verify the process is stopped, and start again the instance, this again will be a script that will be scheduled. You can find more info here about this scenario: https://aem-development.com/knowledge-base/how-to-restart-aem-instance/
If you are using AEMaaCS, I think there is no need to really bounce an instance due on each deployment this will be recreated, please read about how AEMaaCS works: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/overview/architecture.html?lang=en#system-architecture which can help to clarify your doubts.
Something worth mentioning as well is that you can restart the system information that depending on your requirements can be useful: please check this article as well: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/difference-between-aem-restart-and-the-osgi-framework-restart/td-p/282510
Hope this helps
(1). https://stackoverflow.com/questions/37574458/how-to-run-a-bash-script-via-cron
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.