[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: fetchmail daemon dies, won't restart



on Fri, Apr 26, 2002, Brian Nelson (nelson@bignachos.com) wrote:
> Shawn McMahon <smcmahon@eiv.com> writes:
> 
> > begin  Karsten M. Self quotation:
> > > 
> > > I've changed the inovcation to read:
> > > 
> > >     3,18,33,48 *   * * *     root /etc/init.d/fetchmail start 1>/dev/null
> > > 
> > > Checking just now, the daemon's still running.
> > 
> > Change that /dev/null to /tmp/wtfisupwithfetchmail for a while, and see
> > what your script is telling you.
> > 
> > Sounds like your script isn't killing fetchmail on a "start".
> 
> ...as it shouldn't.  It should say "fetchmail already running" and not
> do anything else if fetchmail is running.  If he wanted it to restart
> every time, he should change the "start" to "restart" (but it that
> case it wouldn't make sense to run fetchmail as a daemon).
> 
> I don't know how the start-stop-daemon stuff works, but I'd guess it's
> erroneously detecting a running fetchmail process (because of a
> leftover pid file perhaps?) so it won't ever start fetchmail.

Running this manually seems to work.  The cron job wasn't turning the
trick.

Peace.

-- 
Karsten M. Self <kmself@ix.netcom.com>        http://kmself.home.netcom.com/
 What Part of "Gestalt" don't you understand?
   Kernels don't "grow" unless you compiled with the CHIA_PET option in
   your configure file perhaps.
    -- M. Schubert in misc@openbsd.org

Attachment: pgp_suVDQFid6.pgp
Description: PGP signature


Reply to: