Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Imhotep Daemon doesn't shut down properly for supervisor #19

Closed
youknowjack opened this issue May 5, 2017 · 1 comment
Closed

Imhotep Daemon doesn't shut down properly for supervisor #19

youknowjack opened this issue May 5, 2017 · 1 comment
Labels

Comments

@youknowjack
Copy link
Collaborator

While trying to help someone debug an issue in the forum recently, I noticed that after running "sudo /usr/local/bin/supervisorctl restart ImhotepDaemonMain", the old java process remained alongside the new one. There is some evidence that was causing problems with queries. I was also able to see that "sudo /usr/local/bin/supervisorctl stop ImhotepDaemonMain" was not resulting in the daemon process going away.

@kazysgurskas
Copy link

Stumbled upon this while trying to restart the daemon process. Your setup has command=/opt/imhotep/imhotep.sh as the supervisor command. As the script spawns a child java process, supervisor has no knowledge of it and does not stop it. You should add stopasgroup=true to the config in order to stop the whole process group.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants