Closed JackNewman12 closed 1 year ago
Oh actually I guess this makes sense. Perhaps I might just need to disable the debug print.
Yeah it runs for any file created in /run to track any .pid or foo/pid being created or removed. Maybe there should be a pidfile.c specific #ifdef PIDFILE_DEBUG
or something, it's been bugging me too on occasion.
I noticed on our system when doing
initctl debug
that we see a huge amount of spam. I assumed this was normal until I ran this on my machine at home (with a lot less services) and noticed it was quiet.Looking at pidfile plugin it seems to add a number of watches for files, but there is one that triggers my spidy-senses in
pidfile_init()
that seems to setup a watch for/run
. Is this then triggering on any modifications to files in/run
?https://github.com/troglobit/finit/blob/a47abfdc168a843ce81379805502cdd2f372b230/plugins/pidfile.c#L270-L281
If I get a chance I'll try a build without this line and see what happens.