diff options
author | sebres <serg.brester@sebres.de> | 2016-05-19 19:03:32 +0200 |
---|---|---|
committer | sebres <serg.brester@sebres.de> | 2016-05-20 11:01:00 +0200 |
commit | 932708de9e6a3ba5089116cc3c1ee456ba3b6855 (patch) | |
tree | 8e0aeff2d68ab0777f0e976edf7b441993b732d5 /files | |
parent | d6eae28eb5e61e27139e27432d1daa40a025d57c (diff) | |
download | fail2ban-932708de9e6a3ba5089116cc3c1ee456ba3b6855.tar.gz |
fixed --pidfile bug, introduced in gh-1322:
gentoo-initd fixed --pidfile bug: `--pidfile` is option of start-stop-daemon, not argument of fail2ban (see gh-1434)
closes gh-1434
Diffstat (limited to 'files')
-rwxr-xr-x | files/gentoo-initd | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/files/gentoo-initd b/files/gentoo-initd index b7e1067b..c5b5b702 100755 --- a/files/gentoo-initd +++ b/files/gentoo-initd @@ -34,15 +34,15 @@ start() { # remove stalled sock file after system crash # bug 347477 rm -f /var/run/fail2ban/fail2ban.sock || return 1 - start-stop-daemon --start --exec ${FAIL2BAN} start \ - --pidfile /var/run/fail2ban/fail2ban.pid + start-stop-daemon --start --pidfile /var/run/fail2ban/fail2ban.pid \ + -- ${FAIL2BAN} start eend $? "Failed to start fail2ban" } stop() { ebegin "Stopping fail2ban" - start-stop-daemon --stop --exec ${FAIL2BAN} stop \ - --pidfile /var/run/fail2ban/fail2ban.pid + start-stop-daemon --stop --pidfile /var/run/fail2ban/fail2ban.pid \ + -- ${FAIL2BAN} stop eend $? "Failed to stop fail2ban" } |