Re:We're migrating many of our servers from Linux to FreeBSD
by dataflow on Monday January 24, 2022 @04:26PM
(#30064281)
I don't expect many programs do this (and I agree the real solution would be handles) but it should be possible to check the timestamp on the PID file and only kill the corresponding process if its startup time was earlier.
There might still be race conditions but this should cut down the chance dramatically.
There might still be race conditions but this should cut down the chance dramatically.