Skip to content

Instantly share code, notes, and snippets.

@munim
Created July 20, 2017 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save munim/1c10ab3daa15994a5354e82ac02962c6 to your computer and use it in GitHub Desktop.
Save munim/1c10ab3daa15994a5354e82ac02962c6 to your computer and use it in GitHub Desktop.
Best way to stop AEM/CQ5 instance

Best way to stop AEM/CQ5 instance

In many scenarios, we face trouble to stop AEM/CQ5 instances, even after stopping the service, the java instance keeps on running. The best way to stop an AEM instance is through the following command

[priv_user@some-server home_directory]# pid=`fuser -k -TERM 450{2,3}/tcp` && cd /mnt/crx/*/crx-quickstart && time tail -n0 -f --pid $pid logs/error.log && mv -v logs/error.log{,.`date +%F+%R`} && find launchpad/felix -name digraph -ls -delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment