To check whether a process was restarted, look ‘/var/run/{process name}.pid’ file’s timestamp.