- status: open --> closed-fixed
We encountered an error when wrapper show shutdown in log, but status Running = true
as it was possible to reproduce:
When we start programm on the wrapper we get two process in Linux system:
1) wrapper process
2) child process of wrapper. it's our app.
if kill process 1 (kill -9 PID1), we don'w see some line in log about kill/shutdown wrapper and wrapper doesn't delete pidfile - it's normal.
but if we kill process 2 (kill -9 PID2), we see the folowing rows in log:
INFO|wrapper|Service yajsw|17-12-19 06:50:21|waitpid 23593 256
INFO|wrapper|Service yajsw|17-12-19 06:50:21|exit code posix process: 256 application: 0
INFO|wrapper|Service yajsw|17-12-19 06:50:21|shutdown wrapper due to exit code rule
and the wrapper doesn't delete pidfile.
So wrapper will be show status (Running: false) .It will show until Linux start some programm on this PID.
in this case the wrapper will be show (Running: true) .