LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-06-2001, 03:48 AM   #1
green_t
LQ Newbie
 
Registered: Mar 2001
Posts: 7

Rep: Reputation: 0

I'm trying to get fetchmail to run automatically when I boot up my system. I added this line to /etc/inittab

1::boot:/usr/bin/fetchmail -f /etc/fetchmailrc

That's supposed to run at boot time, right? When I'm logged in as a user, I can run fetchmail and it works like a charm. But this doesn't run it. I copied ~/.fetchmailrc to /etc/fetchmailrc to get that to work globally. Do the permissions on that file matter? Any ideas?

Thanks,
green_t
 
Old 03-06-2001, 06:53 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Are you sure that you are running fetchmail after your network is setup? Sure you are not in single user mode when it executes?

I would remove it from the inittab and add a line to the mutliuser or network rc script. Make sure that you put it after the network is setup and you have internet connectivity.

Gary
 
Old 03-06-2001, 07:22 PM   #3
green_t
LQ Newbie
 
Registered: Mar 2001
Posts: 7

Original Poster
Rep: Reputation: 0
Yes, I'm connected. I'm on a dedicated LAN. The man page suggested adding fetchmail to the inittab, so that's what I tried to do. Do you know what files I need to edit for the network or multiuser rc?
 
Old 03-06-2001, 07:38 PM   #4
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Wink

The scripts depend on which distro you are running. In slackware it would be /etc/rc.d/rc.M for the mutliuser rc.

If you are running Redhat, Mandrake, Debian, Suse or other, I think they execute any executable file in specific directories for each runlevel under /etc/rc.d or /etc/init (I don't know) somewhere... I don't really remember exactly how that worked, so I'll let someone else explain that.

Gary
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Please Help Me with Fetchmail... JawzofDETH Fedora 2 04-22-2005 05:03 AM
Fetchmail qub333 Linux - Software 4 10-27-2004 10:09 PM
fetchmail Red Squirrel Linux - Software 0 04-15-2004 12:36 PM
Using Fetchmail! RKris Linux - Software 2 08-25-2002 04:14 AM
fetchmail wonderpun Linux - General 1 08-21-2002 09:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration