May I ask if anyone can offer any advice on how I monitor and restart CSF lfd service.
I do use monit to keep track of all my services and restart them if needed - so far this works very well.
However I have never managed to configure monit to monitor CSF.
On the most part CSF run perfectly using the Webmin module but occasionally (as of yesterday on an important server) I get a server where this service is intermittently stopping - without any real indication, I can find, in the log files, to cause this.
Any help or advice on how to close this loop would be gratefully accepted.
Yes you are absolutely right lfd should never crash - I will try your command after the next crash (currently there are no results)
I have always used csf -e etc for commands not systemctl … thank you
But actually a very interesting issue which I have now seen on two servers in the last few days
(both completely up to date) I wonder if this has anything to do with lfd stalling
Running a command using systemctl generates this error
Failed to add /run/systemd/ask-password to directory watch: No space left on device
On both cases there are ample of resources.
using df -h and df -i shows everything is far from full.
Thanks for your reply
would you use this in the " If monitor goes down, run command " field just like that?
I am not sure how to test this - until it fails . if I use csf -x than you cannot restart using any commands until you have run csf -e .