mirror of https://github.com/fail2ban/fail2ban
files/fail2ban-openrc.init: remove the "showlog" command.
The extra "showlog" command in our OpenRC service script was more trouble than it was worth: the only thing it did was call "less" on a log file, and the service script is only guessing at the location of the log file (only the fail2ban server knows its true location). It's not like "/etc/init.d/fail2ban showlog" is that much easier to type than "less /var/log/fail2ban.log" in the first place, so I think the extra complexity (5 more lines in the service script) is not worth it.pull/2182/head
parent
c8ed0e0d91
commit
80b1007a8f
|
@ -20,8 +20,7 @@
|
|||
|
||||
description="Daemon to ban hosts that cause multiple authentication errors"
|
||||
description_reload="reload configuration"
|
||||
description_showlog="show fail2ban logs"
|
||||
extra_started_commands="reload showlog"
|
||||
extra_started_commands="reload"
|
||||
|
||||
command="/usr/bin/fail2ban-client"
|
||||
command_args="${FAIL2BAN_OPTIONS}"
|
||||
|
@ -60,7 +59,3 @@ reload() {
|
|||
${command} ${command_args} reload
|
||||
eend $? "Failed to reload ${RC_SVCNAME}"
|
||||
}
|
||||
|
||||
showlog(){
|
||||
less /var/log/fail2ban.log
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue