Skip to content

Commit 7f37916

Browse files
authored
Update csf.py
Add SYSLOG_CHECK default to on every 5 mins
1 parent 0c96771 commit 7f37916

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

plogical/csf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,11 @@ def installCSF():
282282
# HTACCESS_LOG is ins main error.log
283283
elif items.find('HTACCESS_LOG =') > -1 and items.find('=') > -1 and (items[0] != '#'):
284284
writeToConf.writelines('HTACCESS_LOG = "/usr/local/lsws/logs/error.log"\n')
285-
285+
286+
# SYSLOG_CHECK Check whether syslog is running
287+
elif items.find('SYSLOG_CHECK =') > -1 and items.find('=') > -1 and (items[0] != '#'):
288+
writeToConf.writelines('SYSLOG_CHECK = "300"\n')
289+
286290
# CSF UI enable
287291
#elif items.find('UI = "0"') > -1 and items.find('=') > -1 and (items[0] != '#'):
288292
# writeToConf.writelines('UI = "1"\n')

0 commit comments

Comments
 (0)