Summary: | tracking of start and reload times | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Jaco Kroon <jaco> |
Component: | OpenRC | Assignee: | OpenRC Team <openrc> |
Status: | RESOLVED INVALID | ||
Severity: | enhancement | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | lsof-check |
Description
Jaco Kroon
2014-05-04 14:38:33 UTC
Created attachment 376442 [details]
lsof-check
I'm not sure what you're trying but what you want to do sounds more complicated than it actually is.
Take a look at the attached lsof-check script.
So, I guess they way I do it there is your solution. If there's anything unclear feel free to ask. Right know I don't think we'll add this feature. Hi Christian, Thanks for your response, I can see that you put quite some work into it. The lsof-check script does exactly what I've already got (the restart portion for binaries/libraries replaced portion). I can already track when config files changed, and when services started (/proc/ is awesome), but I can't track when services got reloaded. Ala /etc/init.d/${servicename} reload. If I can do that I can compare the config-change times with the latest restart/reload time and if the config files changed after issue another reload. Another consideration is that reload is not supported natively by OpenRC and must be defined in the service script if the service supports it. I agree with Christian; I do not see us adding this feature. |