From owner-freebsd-ports-bugs@FreeBSD.ORG Wed May 2 17:00:25 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 78F4E106564A for ; Wed, 2 May 2012 17:00:25 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 274948FC21 for ; Wed, 2 May 2012 17:00:25 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q42H0PQI043550 for ; Wed, 2 May 2012 17:00:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q42H0Psr043549; Wed, 2 May 2012 17:00:25 GMT (envelope-from gnats) Resent-Date: Wed, 2 May 2012 17:00:25 GMT Resent-Message-Id: <201205021700.q42H0Psr043549@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, julien tayon Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9AAD11065670 for ; Wed, 2 May 2012 16:58:43 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 85E1D8FC12 for ; Wed, 2 May 2012 16:58:43 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q42Gwh8q044528 for ; Wed, 2 May 2012 16:58:43 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q42Gwgg3044524; Wed, 2 May 2012 16:58:42 GMT (envelope-from nobody) Message-Id: <201205021658.q42Gwgg3044524@red.freebsd.org> Date: Wed, 2 May 2012 16:58:42 GMT From: julien tayon To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/167530: [fix included] fail2ban will never ever start with the given rc.d script X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 May 2012 17:00:25 -0000 >Number: 167530 >Category: ports >Synopsis: [fix included] fail2ban will never ever start with the given rc.d script >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed May 02 17:00:24 UTC 2012 >Closed-Date: >Last-Modified: >Originator: julien tayon >Release: 8.3 >Organization: me myself & I >Environment: FreeBSD lupin 8.3-RELEASE FreeBSD 8.3-RELEASE #0: Mon Apr 9 21:23:18 UTC 2012 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: fail2ban dont start because /usr/local/etc/rc.d/fail2ban never could have ever worked (anyone has ever tried to make it start ? ) >How-To-Repeat: service fail2ban start Ctrl+C (service is not backgrounded :/) ps aux | grep fail[2] &> /dev/null && echo "QA tested!" || echo "Baka!" >Fix: vi /usr/local/etc/rc.d/fail2ban #!/bin/sh # # PROVIDE: fail2ban # REQUIRE: DAEMON # KEYWORD: shutdown # Add the following lines to /etc/rc.conf to enable fail2ban: # fail2ban_enable="YES" # fail2ban_flags="" fail2ban_enable=${fail2ban_enable-"NO"} fail2ban_pidfile=${fail2ban_pidfile-"/var/run/fail2ban/fail2ban.pid"} . /etc/rc.subr name="fail2ban" rcvar=fail2ban_enable pidfile="${fail2ban_pidfile}" server="/usr/local/bin/fail2ban-server" command_interpreter="/usr/local/bin/python2.7" client="/usr/local/bin/fail2ban-client" extra_commands="reload jailstatus" load_rc_config ${name} start_cmd="${server} -b ${fail2ban_flags} start" stop_cmd="${server} ${fail2ban_flags} stop" reload_cmd="${server} ${fail2ban_flags} reload" jailstatus_cmd="${server} ${fail2ban_flags} status" run_rc_command "$1" >Release-Note: >Audit-Trail: >Unformatted: