monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

process pid reuse


From: Ranjit Noronha
Subject: process pid reuse
Date: Thu, 2 Aug 2018 11:47:25 +0530

Hi,

I am able to install monit and monitor some of my processes. Monit works very nicely to restart my  processes when they fail.

I am using the pidfile to help recognize the process.

I have a question on process pid reuse.

Suppose a process crashes (seg faults) and its pid get recycled; ie some non-related process comes in with the pid.

The original pid is still in the pidfile created originally.

How does Monit recognize that a pid is recycled and not the original process (so now it should try to restart the original process).

--
thanks,

--ranjit



reply via email to

[Prev in Thread] Current Thread [Next in Thread]