Package: postgrey Version: 1.34-1.1 Severity: important Tags: patch
/etc/init.d/postgrey passes --name to start-stop-daemon, but start-stop-daemon apparently expects a full path (/usr/sbin/postgrey vs postgrey) However, start-stop-daemon is also limited to 15 characters So stop/reload do NOT work at all. --- /etc/init.d/postgrey-dist 2012-04-27 16:58:30.000000000 -0700 +++ /etc/init.d/postgrey 2012-04-27 17:05:53.000000000 -0700 @@ -23,6 +23,7 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/postgrey NAME=postgrey +SSNAME=`echo $DAEMON | cut -c -15` DESC="postfix greylisting daemon" PIDFILE=/var/run/$NAME.pid @@ -51,7 +52,7 @@ start) log_daemon_msg "Starting $DESC" "$NAME" if start-stop-daemon --start --oknodo --quiet \ - --pidfile $PIDFILE --name $NAME \ + --pidfile $PIDFILE --name $SSNAME \ --startas $DAEMON -- $POSTGREY_OPTS "$POSTGREY_TEXT_OPT" then log_end_msg 0 @@ -63,7 +64,7 @@ stop) log_daemon_msg "Stopping $DESC" "$NAME" if start-stop-daemon --stop --oknodo --quiet \ - --pidfile $PIDFILE --name $NAME + --pidfile $PIDFILE --name $SSNAME then log_end_msg 0 else @@ -75,7 +76,7 @@ reload|force-reload) log_action_begin_msg "Reloading $DESC configuration..." if start-stop-daemon --stop --signal 1 --quiet \ - --pidfile $PIDFILE --name $NAME + --pidfile $PIDFILE --name $SSNAME then log_action_end_msg 0 else -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (x86_64) Kernel: Linux 3.2.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Versions of packages postgrey depends on: ii adduser 3.102 Add and remove users and groups ii debconf [debconf-2.0] 1.5.39 Debian configuration management sy ii libberkeleydb-perl 0.49-1 use Berkeley DB 4 databases from P ii libnet-dns-perl 0.66-2+b2 Perform DNS queries from a Perl sc ii libnet-server-perl 0.94-1 An extensible, general perl server ii perl 5.14.2-9 Larry Wall's Practical Extraction ii ucf 3.007 Update Configuration File: preserv Versions of packages postgrey recommends: ii libnet-rblclient-perl 0.5-1 Queries multiple Realtime Blackhol ii libparse-syslog-perl 1.10-1 Perl module for parsing syslog ent ii postfix 2.9.1-4 High-performance mail transport ag -- debconf information: postgrey/1.32-3_changeport: -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org