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
I've done a lot of research and haven't found a simple solution. I also don't want to leave the tini, like using an s6-overlay or supervisord. Thank you in advance for your help.
My container runs a jvm and a nginx. When I run a jvm diagnostic command, something like jcmd 8 VM.version, jvm receives a SIGQUIT and nginx too. The jvm continues to run as expected, but nginx is killed.
By monitoring the PID of the jvm and nginx with strace, it is possible to see both processes receiving the signal.
Below I gave an image that explains the whole scenario.
tini logs
[TRACE tini (1)] No child to reap
[TRACE tini (1)] No child to reap
[DEBUG tini (1)] Received SIGCHLD
[DEBUG tini (1)] Reaped child with pid: '14'
[TRACE tini (1)] No child to reap
[TRACE tini (1)] No child to reap
How can I get nginx to continue working after the jvm receives the diagnostic signal?
Thanks!
The text was updated successfully, but these errors were encountered:
How can I get nginx to continue working after the jvm receives the diagnostic signal?
First, tini isn't meant to run multiple programs, it is not a full supervisor. The problem isn't that it should "keep running" , but that it should never get sent the SIGQUIT signal. Most likely jcmd is just sending the signal to the "process group" of the specified pid and not just the individual pid.
Hi!
Sorry for the issue title, feel free to change
I've done a lot of research and haven't found a simple solution. I also don't want to leave the tini, like using an s6-overlay or supervisord. Thank you in advance for your help.
My container runs a
jvm
and anginx
. When I run ajvm
diagnostic command, something likejcmd 8 VM.version
,jvm
receives aSIGQUIT
andnginx
too. Thejvm
continues to run as expected, butnginx
is killed.By monitoring the
PID
of thejvm
andnginx
withstrace
, it is possible to see both processes receiving the signal.Below I gave an image that explains the whole scenario.
tini logs
How can I get
nginx
to continue working after thejvm
receives the diagnostic signal?Thanks!
The text was updated successfully, but these errors were encountered: