Re: best way to start fetchmail at boot

From: John Prather (jprather_at_uci.edu)
Date: 01/28/05

  • Next message: Walt Harris: "Re: kprinter issue; lpr works"
    Date: Fri, 28 Jan 2005 12:07:03 -0800
    
    

    To start custom stuff at boot that the OS doesn't already support, just
    create a /etc/rc.local file and put the commands you want run at boot
    time in there.

    -john

    Thomas Köllmann wrote:
    > "MZ" <zarellam@removetwcny.rr.comspam> writes:
    >
    >
    >><snip>
    >>
    >>>so the user's crontab may contain a line like this:
    >>>
    >>>@reboot /usr/local/bin/fetchmail -s -d 450
    >>>
    >>>to suck mail every 7.5 minutes
    >>
    >>I added the following line to /etc/crontab
    >>
    >>@reboot mark fetchmail
    >>
    >>It still doesn't work. What am I doing wrong? It works if I manually do it
    >>by logging in as mark and typing fetchmail.
    >
    >
    > Most likely cron doesn't have /usr/local/bin in it's $PATH.
    >
    > Specify the full path to fetchmail, or maybe add it to cron's environment
    > (defined at the top of /etc/crontab).
    >
    >
    >>Also, to start dovecot at boot, I manually do it by logging in as root and
    >>typing dovecot. Could I add this to the crontab in the same manner as
    >>fetchmail?
    >
    >
    > There should have been installed a start script if you use the dovecot
    > port or package. Read it to see whether you need to switch it on
    > somehow.
    >
    > Gruß
    > - Thomas
    >
    >


  • Next message: Walt Harris: "Re: kprinter issue; lpr works"

    Relevant Pages

    • Re: Auto-starting fetchmail on startup
      ... > Can you tell me how to setup te cron job to start upon boot up? ... >>>currently setup to boot into the text mode, ... >>>fetchmail to run no matter it is started in text or graphic mode. ...
      (comp.os.linux.setup)
    • Re: Auto-starting fetchmail on startup
      ... Can you tell me how to setup te cron job to start upon boot up? ... >>fetchmail to run no matter it is started in text or graphic mode. ...
      (comp.os.linux.setup)
    • Dapper: Dovecot mutters sthg about correcting /var/run permissions
      ... partitions, so it dropped out of the bootscreen and continued with a ... text boot. ... I noticed among the messages scrolling past, dovecot muttering something ... than it ever did (depending on which mail client I use, ...
      (Ubuntu)
    • Re: problem with dovecot and mysql at boot
      ... At boot, I have this error: ... I think it's because mysql is started after dovecot. ... How resolve this, and specify to launch dovecot after mysql is running? ...
      (freebsd-questions)
    • Re: problem with dovecot and mysql at boot
      ... I think it's because mysql is started after dovecot. ... How resolve this, and specify to launch dovecot after mysql is running? ... Do you actually have to start it by hand after boot, or does it really start on the retry? ...
      (freebsd-questions)