DEV: Improve auto-restart parent process detection logic (PR #13068)

The auto restart logic was sending a USR2 to the parent process without checking what the parent process actually was. In some situations, it might not be the bin/unicorn supervisor.

This commit switches to use a global variable for the supervisor PID. This will be much less prone to unexpected behavior.

GitHub