Package: postgrey
Version: 1.34-1.1
Severity: important
Tags: patch


-- System Information:
Debian Release: 7.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages postgrey depends on:
ii  adduser                3.113+nmu3
ii  debconf [debconf-2.0]  1.5.49
ii  libberkeleydb-perl     0.51-1
ii  libnet-dns-perl        0.66-2+b2
ii  libnet-server-perl     2.006-1+deb7u1
ii  perl                   5.14.2-21+deb7u1
ii  ucf                    3.0025+nmu3

Versions of packages postgrey recommends:
ii  libnet-rblclient-perl  0.5-2
ii  libparse-syslog-perl   1.10-2
ii  postfix                2.9.6-2

postgrey suggests no packages.

-- Configuration Files:
/etc/init.d/postgrey changed:
set -e
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/postgrey
NAME=postgrey
DESC="postfix greylisting daemon"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
test -x $DAEMON || exit 0
. /lib/lsb/init-functions
if [ -r /etc/default/$NAME ]
then
    . /etc/default/$NAME
fi
POSTGREY_OPTS="--pidfile=$PIDFILE --daemonize $POSTGREY_OPTS"
if [ -z "$POSTGREY_TEXT" ]; then
    POSTGREY_TEXT_OPT=""
else
    POSTGREY_TEXT_OPT="--greylist-text=$POSTGREY_TEXT"
fi
ret=0
case "$1" in
  start)
        log_daemon_msg "Starting $DESC" "$NAME"
        if start-stop-daemon --start --oknodo --quiet \
                --pidfile $PIDFILE \
                --startas $DAEMON -- $POSTGREY_OPTS "$POSTGREY_TEXT_OPT"
        then
            log_end_msg 0
        else
            ret=$?
            log_end_msg 1
        fi
        ;;
  stop)
        log_daemon_msg "Stopping $DESC" "$NAME"
        if start-stop-daemon --stop --oknodo --quiet \
                --pidfile $PIDFILE
        then
            log_end_msg 0
            rm -f $PIDFILE
        else
            ret=$?
            log_end_msg 1
        fi
        ;;
  reload|force-reload)
        log_action_begin_msg "Reloading $DESC configuration..."
        if start-stop-daemon --stop --signal 1 --quiet \
                --pidfile $PIDFILE
        then
            log_action_end_msg 0
        else
            ret=$?
            log_action_end_msg 1
        fi
        ;;
  restart)
        $0 stop
        $0 start
        ret=$?
        ;;
  status)
        status_of_proc -p $PIDFILE $DAEMON "$NAME" 2>/dev/null
        ret=$?
        ;;
  *)
        echo "Usage: $SCRIPTNAME 
{start|stop|restart|reload|force-reload|status}" >&2
        exit 1
        ;;
esac
exit $ret


-- debconf information:
  postgrey/1.32-3_changeport:

In the stop section, I moved the 'rm -f $PIDFILE' from the bottom of the if 
statement to the end of the then statement ( good exit status ).


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to