I have AEM instance setup on a AWS Ubuntu machine. Not sure why stop command not working for publish instance. It is working fine for author instance. We have configured it on changed port(5054). Can anyone suggest if I am missing anything? Here is the screen shot showing the error message while running the stop command:
You cannot stop an AEM instance with the
stop
script if you did not start it with thestart
script.
If you look at the scripts you'll see that:
start
script creates a file conf/cq.pid
that has the java PID
stop
script looks for that file and tries to stop the instance then deletes the file.
Thus, if you did not start with start
script, you cannot stop with stop
script.