Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.