Package: polipo
Version: 0.9.5-1
Severity: normal

My system used to have polipo installed, but it has since been removed
(but not purged).

/etc/logrotate.d/polipo contains this postrotate script:

                PIDFILE=/var/run/polipo/polipo.pid
                [ -f "$PIDFILE" ] && kill -USR1 $(cat "$PIDFILE")

The problem seems to be that when $PIDFILE does not exist, the exit code
of the second line is 1, so logrotate thinks the postrotate script has
failed.  Changing to

if [ -f "$PIDFILE" ] ; then kill -USR1 $(cat "$PIDFILE") ; fi

would work around this problem by returning a 0 exit code if the pidfile
does not exist, or the exit code of kill if it does.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages polipo depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to