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

Re: How to establish a semi-permanent dial-up connection?



> My question is: instead of having fetchmail start up from ip-up,
>how to I get it going by itself? In other words, I want to start
>fetchmail in daemon mode during the boot sequence. I know it has to be
>after diald gets started, or the thing won't work the first time out.
>Where do I put the fetchmail-up script to make this happen properly?


Add a script to /etc/rc.boot called "fetchmail" or something.  Be sure the
first line of the script indicates the shell to run the script (i.e.
"#!/bin/sh) and make sure the script is "chown root:root" and "chmod 0750".

I can't remember for sure or not - it's been a while since I worked with
fetchmail - but you may have to do a "/bin/su -c 'command line to run
fetchmail' <username>" to get fetchmail to run as a user other than root....
But, probably all you'll have to do is move the fetchmail line out of ip-up
and into the new script created above.

Hope this helps!

Later,
Kevin Traas

Attachment: Kevin Traas.vcf
Description: Binary data


Reply to: