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.
pull/2182/head
Michael Orlitzky 2018-07-15 13:05:11 -04:00
parent 64ec399542
commit af24c52558
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ extra_started_commands="reload showlog"
FAIL2BAN="/usr/bin/fail2ban-client ${FAIL2BAN_OPTIONS}"
depend() {
need logger
use logger
after iptables
}