Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Starting a script on boot?

Status
Not open for further replies.

SmileeTiger

Programmer
Mar 13, 2000
200
US
I am trying to start fetchmail on bootup under Mandrake 8.1 what I want to
do is simply have a script that runs every boot containing the following:
fetchmail -d 300

that's all.

If I run runlevel it gives me the following:
# runlevel
N 5

So I assume I am in run level 5 and therefore I should place the script in
/etc/inet.d/
I called the file Fetchmail and placed fetchmail -d 300 inside

I then create a symbolic link to this file and place it in /etc/rc.d/rc5.d
using the following command '

I assume I have the correct permissions set because when I do an ls -la on
/etc/rc.d/rc5.d/ I get:
lrwxrwxrwx 1 root root 21 Jun 26 17:00 S99Fetchmail ->
/etc/init.d/Fetchmail*

On /etc/init.d/ I get:
-rwxr-xr-x 1 root root 28 Jun 26 17:11 Fetchmail*

All of this doesn't work however..... any suggestions on what to do?

I know i can use fetchmailconf to streamline this but I would perfer to know how to do it for anything I wanna start :)
 
Do you boot to a GUI, because thats what runlevel 5 is? The /etc/inittab file tells you what runlevel the computer boots to. Look for this line...

id:3:initdefault:

"I then create a symbolic link to this file and place it in /etc/rc.d/rc5.d
using the following command '" --> you forgot to tell us the command you used.

Run a "dmesg | grep -i "fetchmail" to see if you get any errors trying to load the file during bootup.

Whats with the Fetchmail* ? Did you name the file with an asterick at the end of it? I don't think that it matters, I'm just wondering.

ChrisP ---------------------------------------
If someone's post was helpful to you, please click the box "Click here to mark this post as a helpful or expert post".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top