LFD Dies if num log files exceed file descriptor limits
Posted: 30 Jun 2015, 22:58
Hi there,
I'm on a stock CentOS6 system and have configured csf to read all Plesk domain logs via file globbing. This works great generally, but on some servers with more than roughly 150 or so domains (particularly when we've got nginx and apache running), LFD is reading in a large number of log files and exceeding the default 1024 per user limit.
My temporary fix for this has worked great: edit /etc/init.d/lfd and add in this: 'ulimit -n 4096' between lines 44 and 45. The only downside to this is that the init script keeps getting overwritten upon CSF updates!
Would it be possible to get this modification included in future updates?
Thanks for considering!
Jordan
I'm on a stock CentOS6 system and have configured csf to read all Plesk domain logs via file globbing. This works great generally, but on some servers with more than roughly 150 or so domains (particularly when we've got nginx and apache running), LFD is reading in a large number of log files and exceeding the default 1024 per user limit.
My temporary fix for this has worked great: edit /etc/init.d/lfd and add in this: 'ulimit -n 4096' between lines 44 and 45. The only downside to this is that the init script keeps getting overwritten upon CSF updates!
Would it be possible to get this modification included in future updates?
Thanks for considering!
Jordan