I am running multiple unicorn processes on my production server. Now I want to check the individual service uptime of my services. For instance if any unicorn process restart automatically, it should start recording its uptime. By this means I want to calculate what is the uptime of the service since its last start/restart/reload
Note: Here I am not talking about the server uptime which can be known by using uptime
command like below.
$ uptime
19:11:25 up 2 days, 21:28, 1 user, load average: 0.11, 0.09, 0.11
I would like to know the uptime of individual service like uptime of nginx
Is it possible to know it somehow?