summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorMichael Orlitzky <michael@orlitzky.com>2018-07-15 13:05:11 -0400
committerMichael Orlitzky <michael@orlitzky.com>2018-07-15 13:05:11 -0400
commitaf24c52558296e52e90cb55fad449b2bf9e996c6 (patch)
treeacd14b9b8d7c121c13904b95e81f79ecd6420a86 /files
parent64ec399542f20582090a69b77f4c5b90f7b41019 (diff)
downloadfail2ban-af24c52558296e52e90cb55fad449b2bf9e996c6.tar.gz
files/fail2ban-openrc.init: change "need logger" dependency to "use logger".
Our OpenRC service script contained a "need logger" dependency, which meant that the life cycle of the fail2ban service was tied to that of the system logger service. That isn't quite correct: fail2ban functions fine even if the system logger is stopped: 1. fail2ban is capable of analyzing non-syslog log files. 2. Even if fail2ban is solely analyzing syslog files, we don't want to stop the fail2ban service simply because syslog was stopped -- fail2ban just won't see any new log lines until syslog is started again. This commit changes the "need net" dependency to "use net", which will still attempt to start the system logger service, but which won't kill fail2ban if the system logger is ever stopped.
Diffstat (limited to 'files')
-rwxr-xr-xfiles/fail2ban-openrc.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/fail2ban-openrc.init b/files/fail2ban-openrc.init
index 69025499..138bff30 100755
--- a/files/fail2ban-openrc.init
+++ b/files/fail2ban-openrc.init
@@ -26,7 +26,7 @@ extra_started_commands="reload showlog"
FAIL2BAN="/usr/bin/fail2ban-client ${FAIL2BAN_OPTIONS}"
depend() {
- need logger
+ use logger
after iptables
}