Skip to content

Commit

Permalink
added export to PATH, removed -b
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Sep 21, 2005
1 parent b54377b commit 207b3f7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 2 additions & 3 deletions config/debian-initd
Expand Up @@ -10,8 +10,7 @@
#
# Version: $Id$
#

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
export PATH="${PATH:+$PATH:}/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
DAEMON=/usr/bin/fail2ban
NAME=fail2ban
DESC=fail2ban
Expand All @@ -31,7 +30,7 @@ case "$1" in
echo -n "Starting $DESC: "
[ -f $PIDFILE ] && [ ! -d /proc/`cat $PIDFILE` ] && rm -f $PIDFILE
start-stop-daemon --start --quiet --pidfile $PIDFILE \
-b --exec $DAEMON -- $DAEMON_OPTS
--exec $DAEMON -- $DAEMON_OPTS
echo "$NAME."
;;
stop)
Expand Down
9 changes: 9 additions & 0 deletions debian/changelog
@@ -1,3 +1,12 @@
fail2ban (0.5.4-2) unstable; urgency=low

* Now exporting PATH explicitely in init.d/fail2ban script, to avoid
problems finding iptables in the cases when PATH was not exported outside
(cfengine, broken shell environment) (closes: #329304)
* Removed -b from start-stop-daemon because fail2ban detahes on its own

-- Yaroslav Halchenko <debian@onerussian.com> Wed, 21 Sep 2005 08:09:06 -0400

fail2ban (0.5.4-1) unstable; urgency=low

* New upstream release
Expand Down

0 comments on commit 207b3f7

Please sign in to comment.