You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Been using MeshCentral for quite some time now and i love it, but i have noticed that the docker version of it is directly launching the node app via the startup.sh script which results in the app running as the top process and is ignoring SIGTERM commands when one is trying to bring down or restart the container. (meshcentral will eventually terminate but only after reaching the default 10seconds timeout)
One possible solution and one that i have used myself and seen others use for their node apps is to use a simple init process manager and start it as the top process thus allowing it to manage the node app. This would normally respect SIGTERM commands sent via docker and properly handle process termination.
I have had my own node projects timing out with 10 seconds and using tini init (https://github.com/krallin/tini) has worked wonders for me.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Been using MeshCentral for quite some time now and i love it, but i have noticed that the docker version of it is directly launching the node app via the startup.sh script which results in the app running as the top process and is ignoring SIGTERM commands when one is trying to bring down or restart the container. (meshcentral will eventually terminate but only after reaching the default 10seconds timeout)
One possible solution and one that i have used myself and seen others use for their node apps is to use a simple init process manager and start it as the top process thus allowing it to manage the node app. This would normally respect SIGTERM commands sent via docker and properly handle process termination.
I have had my own node projects timing out with 10 seconds and using tini init (https://github.com/krallin/tini) has worked wonders for me.
Beta Was this translation helpful? Give feedback.
All reactions