[pkg-fetchmail-maint] Bug#348037: fetchmail: PID file searched in the wrong location

Matthias Andree matthias.andree at gmx.de
Sat Jan 14 15:26:09 UTC 2006


Michael Guntsche <mike at it-loops.com> writes:

> Package: fetchmail
> Version: 6.3.1-2
> Severity: normal
>
> I recently updated from 6.2.5.4 to this version of fetchmail and noticed
> that I was no longer able to stop the systemwide fetchmail with
> /etc/init.d/fetchmail stop.
> Looking at the init script I noticed that the definition of the PIDFILE
> had changed.
>
> Old Version:
> PIDFILE="`getent passwd $USER | awk -F: '{ print $6 }'`/.fetchmail.pid"

This should probably have been 

  PIDFILE="$(getent passwd $USER | awk -F: '{ print $6 }')/.fetchmail.pid"

since it's easier to read.

However if the fetchmail user's homedir is always /var/lib/fetchmail and
fetchmail is run as user "fetchmail", then...

> New Version:
> PIDFILE="/var/run/fetchmail.pid"

PIDFILE=/var/lib/fetchmail/.fetchmail.pid

would probably do (please check).

-- 
Matthias Andree



More information about the pkg-fetchmail-maint mailing list