Re: System Wide Fetchmail (failed!)
On Sun, 19 Aug 2001, Roland Hinkley wrote: Hi, I am slowly getting my Debian System up and running. I do still have a problem that is driving me mad. Fetchmail works fine when I start it as a user. Unfortunately when it tries to start at boot I get the message that it has failed. It also does not start up from the fetchmail script within ip-up. How does your script in ip-up look like? You need to tell fetchmail where to look for the fetchmailrc. I have created a fetchmailrc in /etc. there is a fetchmail entry in /etc/default. Cheers Roland Frank
System Wide Fetchmail (failed!)
Hi, I am slowly getting my Debian System up and running. I do still have a problem that is driving me mad. Fetchmail works fine when I start it as a user. Unfortunately when it tries to start at boot I get the message that it has failed. It also does not start up from the fetchmail script within ip-up. I have created a fetchmailrc in /etc. there is a fetchmail entry in /etc/default. I have read all I can including some articles in the list archives but to no avail. Any pointers would be appreciated. Cheers Roland -- Roland Hinkley
Re: System Wide Fetchmail (failed!)
Roland == Roland Hinkley [EMAIL PROTECTED] writes: Roland I do still have a problem that is driving me Roland mad. Fetchmail works fine when I start it as a Roland user. Unfortunately when it tries to start at boot I get Roland the message that it has failed. It also does not start up Roland from the fetchmail script within ip-up. G'day Roland, I think this is a common problem with Debian (at least I remember it being on the list at infrequent intervals) my solutions is to make a .fetchmail in my home directory edit the /etc/ppp/ip-up.d/fetchmail script so it only contains. su -c fetchmail --daemon 300 user-id-here this automaticly fetches the mail from the servers in my .fetchmail when I connect to the web -- Joel
Re: System Wide Fetchmail (failed!)
In article [EMAIL PROTECTED], Joel Mayes [EMAIL PROTECTED] writes Roland == Roland Hinkley [EMAIL PROTECTED] writes: Roland I do still have a problem that is driving me Roland mad. Fetchmail works fine when I start it as a Roland user. Unfortunately when it tries to start at boot I get Roland the message that it has failed. It also does not start up Roland from the fetchmail script within ip-up. G'day Roland, I think this is a common problem with Debian (at least I remember it being on the list at infrequent intervals) my solutions is to make a .fetchmail in my home directory edit the /etc/ppp/ip-up.d/fetchmail script so it only contains. su -c fetchmail --daemon 300 user-id-here this automaticly fetches the mail from the servers in my .fetchmail when I connect to the web -- Joel Hi Joel, Many thanks for your reply. Yes I found lots of articles in the archives but no real answers. I will give your suggestion a try. Cheers Roland -- Roland Hinkley
Re: System Wide Fetchmail (failed!)
On Sun, 19 Aug 2001, Roland Hinkley wrote: I do still have a problem that is driving me mad. Fetchmail works fine when I start it as a user. Unfortunately when it tries to start at boot I get the message that it has failed. It also does not start up from the fetchmail script within ip-up. Make sure the /etc/fetchmailrc file in /etc is readable by the fetchmailrc user... Also, refer to the syslog (/var/log/syslog) for error messages. There is also /etc/init.d/fetchmail debug-run in the newest fetchmail packages which may be able to help you. -- One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie. -- The Silicon Valley Tarot Henrique Holschuh
Re: System Wide Fetchmail (failed!)
* Roland Hinkley ([EMAIL PROTECTED]) [010819 05:03]: I do still have a problem that is driving me mad. Fetchmail works fine when I start it as a user. Create a .fetchmailrc in your home directory and run fetchmail as a regular user. That is assuming this is a single-user system. Unfortunately when it tries to start at boot I get the message that it has failed. So does mine... I ignore it and it all works fine. Regards Hall
Re: System Wide Fetchmail (failed!)
Hi, I think you are on potato CD. (r2.2?) Newer woody version and possibly newer potato bversion(r2.3?)should not suffe. Short answer: You need to set scriptfile location by -f option. Long answer (See below): On Sun, Aug 19, 2001 at 09:58:43AM +0100, Roland Hinkley wrote: I do still have a problem that is driving me mad. Fetchmail works fine when I start it as a user. Yes. It is exactly I experienced, too. Unfortunately when it tries to start at boot I get the message that it has failed. It also does not start up from the fetchmail script within ip-up. I have created a fetchmailrc in /etc. there is a fetchmail entry in /etc/default. Assuming you are starting fetchmail as root during boot scripti like I id, without commandline option to specify file location. This is what happens! fetchmails look for fetchmailrc in home directory which is / in those environment in debian. (It used to drive me crazy and I filed bug report. It was marked fixed by maintainer after he includded his init.d script in the newer package.) My /etc/init.d/fetchmail looks like following. #!/bin/sh # # To start fetchmail as a system service, copy this file to # /etc/init.d/fetchmail and run update-rc.d fetchmail # defaults 30. A fetchmailrc file containg hosts and # passwords for all local users should be placed in /root # and should contain a line of the form set daemon nnn. # # To remove the service, delete /etc/init.d/fetchmail and run # update-rc.d fetchmail remove. DAEMON=/usr/bin/fetchmail # # Patch to make sure to start in sysvinit # # Without following, fetchmail trys to read /.fetchmail instead of # /root/fetchmail if started in sysvinit script. ($PWD=$HOME=/) #FETCHMAILRC=/root/.fetchmailrc FETCHMAILRC=/etc/fetchmailrc set -e test -f $DAEMON || exit 0 case $1 in start) echo -n Starting mail retrieval agent: if start-stop-daemon --start --exec $DAEMON -- -f $FETCHMAILRC; then echo fetchmail. else echo fetchmail fail to start, maybe already running.; fi ;; stop) echo -n Stopping mail retrieval agent: start-stop-daemon --stop --quiet --exec $DAEMON echo fetchmail. ;; force-reload|restart) echo -n Restarting mail retrieval agent: start-stop-daemon --stop --quiet --exec $DAEMON if start-stop-daemon --start --exec $DAEMON -- -f $FETCHMAILRC; then echo fetchmail. else echo fetchmail fail to start, maybe already running.; fi echo fetchmail. ;; *) echo Usage: /etc/init.d/fetchmail {start|stop|restart} exit 1 ;; esac exit 0 Newr package use similar but slightly different script written by maintainer but idea is same. -- ~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ + Osamu Aoki [EMAIL PROTECTED], GnuPG-key: 1024D/D5DE453D + + My debian quick-reference, http://www.aokiconsulting.com/quick/+
Re: System Wide Fetchmail (failed!)
In article [EMAIL PROTECTED], Henrique de Moraes Holschuh [EMAIL PROTECTED] writes On Sun, 19 Aug 2001, Roland Hinkley wrote: I do still have a problem that is driving me mad. Fetchmail works fine when I start it as a user. Unfortunately when it tries to start at boot I get the message that it has failed. It also does not start up from the fetchmail script within ip-up. Make sure the /etc/fetchmailrc file in /etc is readable by the fetchmailrc user... Also, refer to the syslog (/var/log/syslog) for error messages. There is also /etc/init.d/fetchmail debug-run in the newest fetchmail packages which may be able to help you. -- Hi Henrique, I updated to the latest Fetchmail and ran /etc/init.d/fetchmail debug- run as you suggested, which was most informative. It seems that the global fetchmailrc has to have the execute bit set. Fetchmail now starts from 'debug-run' so just need to confirm that it starts from ip- up.d. An added bonus is that multidrop now works for my demon.co.uk account (where I collect this list). Many thanks Roland -- Roland Hinkley