News for hackers. Stuff that matters.
Re:We're migrating many of our servers from Linux to FreeBSD by fullstop on Monday January 24, 2022 @12:29PM (#30060853)
> But PIDs are recycled or more likely your PID files didn't get cleaned up on reboot. So you look at your file and it says 2567, you look up 2567 and see a running process! Done right? Well it just so happenes that a random other process was assigned that PID and your service isn't actually running.

If you're unlucky, though, pid 2567 might match another myservice instance. This can easily happen if you're running many instances of the same service. Even checking /proc/$PID/exe could give you a false positive.

There are no comments on this comment yet.