Supervisor/supervisor — Issue #57: STDOUT capturing is closed before the process gets terminated 
Author: everyday
Created: 2011-11-27 17:51:55+00:00
State: open

I am using supervisor to daemonize php script with php cli. In my script I'm intercepting SIG_TERM signals to terminate the script safelt. After getting SIG_TERM the script echoes some data to output.

When I stop the script from superuserctl with stop command, the script successfully captures the term signal and shut downs gracefully but no data from output gets logged by supervisor after the stop command.

I was wondering if it's a bug or feature and how I can change this behavior.