{"id":860,"date":"2017-01-25T13:51:27","date_gmt":"2017-01-25T18:51:27","guid":{"rendered":"https:\/\/www.devolve.net\/blog\/?p=860"},"modified":"2017-01-25T13:52:36","modified_gmt":"2017-01-25T18:52:36","slug":"lfd-stops-logging-to-kern-log","status":"publish","type":"post","link":"https:\/\/www.devolve.local\/lfd-stops-logging-to-kern-log\/","title":{"rendered":"LFD stops logging to kern.log"},"content":{"rendered":"

It took a while before I figured out why LFD wasn’t logging any issues to kern.log on my Debian-based systems. I realized at some point that it worked when I first installed CSF, but then logged nothing after the first day<\/em>. <\/p>\n

Hmmm. What happens everyday on a typical UN*X-like system? Cron. \/etc\/cron.daily executes the logrotate script, which moves the log file and creates a new one. Anything writing to those files need to be SIGHUP’d or restarted. But CSF isn’t that well-tuned to Debian-based systems when it’s installed manually<\/a>.<\/p>\n

You can fix it in one of two ways. Change the cron run time in \/etc\/cron.d\/lfd-cron to a minute after cron.daily runs or put \/usr\/sbin\/csf --lfd restart > \/dev\/null 2>&1<\/code> in the postrotate stanza of \/etc\/logrotate.d\/rsyslog.<\/p>\n","protected":false},"excerpt":{"rendered":"

It took a while before I figured out why LFD wasn’t logging any issues to kern.log on my Debian-based systems. I realized at some point that it worked when I first installed CSF, but then logged nothing after the first day.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[34,24,26],"_links":{"self":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/860"}],"collection":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/comments?post=860"}],"version-history":[{"count":1,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/860\/revisions"}],"predecessor-version":[{"id":861,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/860\/revisions\/861"}],"wp:attachment":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/media?parent=860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/categories?post=860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/tags?post=860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}