From d1369db297c97d5ff9ac41de85fd32faacfd61fa Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 29 Apr 2013 11:51:28 +0200 Subject: [PATCH] remove daemontools support, fail2ban doesn't play well with it because the daemon started standalone won't do anything before the client parse the config and send the param to the server --- createlinks | 5 +---- root/var/service/fail2ban/log/run | 6 ------ root/var/service/fail2ban/run | 3 --- 3 files changed, 1 insertion(+), 13 deletions(-) delete mode 100644 root/var/service/fail2ban/log/run delete mode 100644 root/var/service/fail2ban/run diff --git a/createlinks b/createlinks index 7f08e63..b7ec217 100644 --- a/createlinks +++ b/createlinks @@ -6,11 +6,8 @@ templates2events("/etc/rc.d/init.d/masq", "fail2ban-update"); templates2events("/etc/fail2ban/jail.conf", "fail2ban-conf"); templates2events("/etc/fail2ban/fail2ban.conf", "fail2ban-conf"); safe_symlink("adjust", "root/etc/e-smith/events/fail2ban-update/services2adjust/masq"); -safe_symlink("adjust", "root/etc/e-smith/events/fail2ban-conf/services2adjust/fail2ban"); +safe_symlink("restart", "root/etc/e-smith/events/fail2ban-conf/services2adjust/fail2ban"); service_link_enhanced("fail2ban", "S92", "7"); service_link_enhanced("fail2ban", "K08", "6"); service_link_enhanced("fail2ban", "K08", "0"); -safe_touch("root/var/service/fail2ban/down"); -safe_symlink("../daemontools" , 'root/etc/rc.d/init.d/supervise/fail2ban'); -safe_symlink("/var/service/fail2ban" , 'root/service/fail2ban'); diff --git a/root/var/service/fail2ban/log/run b/root/var/service/fail2ban/log/run deleted file mode 100644 index 62cb970..0000000 --- a/root/var/service/fail2ban/log/run +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -exec \ - /usr/local/bin/setuidgid smelog \ - /usr/local/bin/multilog t s5000000 \ - /var/log/fail2ban diff --git a/root/var/service/fail2ban/run b/root/var/service/fail2ban/run deleted file mode 100644 index b038711..0000000 --- a/root/var/service/fail2ban/run +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -exec /usr/bin/fail2ban-server -fx