[pkg-fetchmail-maint] Bug#449577: Bug#449577: start on install only if already running

Nico Golde nion at debian.org
Tue Nov 6 20:38:32 UTC 2007


Hi jidanni,
* jidanni at jidanni.org <jidanni at jidanni.org> [2007-11-06 21:31]:
> X-Debbugs-No-Ack: please
> Package: fetchmail
> Version: 6.3.8-10
> Severity: wishlist
> 
> I discovered installing fetchmail also starts it.
> I have START_DAEMON=yes in /etc/default/fetchmail, so I can use
> "/etc/init.d/fetchmail start" when I please.
[...] 
> Perhaps detect if fetchmail is running and write a file in /tmp that
> tells ourselves to start fetchmail again after installation.

Maybe I misunderstood you, but what is the bug or the wish?
Fetchmail does not start again if it is already started:
        start)
                if test -e $PIDFILE ; then
                        pid=`cat $PIDFILE | sed -e 's/\s.*//'|head -n1`
                        PIDDIR=/proc/$pid
                    if [ -d ${PIDDIR} -a  "$(readlink -f ${PIDDIR}/exe)" = "${DAEMON}" ]; then
                                log_failure_msg "fetchmail already started; not starting."
                                exit 0
                        else
                                log_warning_msg "Removing stale PID file $PIDFILE."
                                rm -f $PIDFILE
                        fi
                fi

This is from the fetchmail init script. If there is already a running fetchmail
daemon it won't start again. If START_DAEMON is set to yes it is intended behaviour
to call the init script and try to start it.
Kind regards
Nico
-- 
Nico Golde - http://www.ngolde.de - nion at jabber.ccc.de - GPG: 0x73647CFF
For security reasons, all text in this mail is double-rot13 encrypted.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-fetchmail-maint/attachments/20071106/3ed0329a/attachment.pgp 


More information about the pkg-fetchmail-maint mailing list