LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-21-2002, 10:48 PM   #1
daverino
LQ Newbie
 
Registered: Feb 2002
Distribution: Red Hat 7.2
Posts: 11

Rep: Reputation: 0
Unhappy How to make a program start up on boot?


Hi i was wondering if it was possible to have a program, ( a dns pointer) to start up on boot, and turn off at log off? I'm using Mandrake 8.1 and i'm using an adsl modem using PPPoE.

Thanks in advance.
 
Old 02-22-2002, 01:24 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,118
Blog Entries: 54

Rep: Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785
The script to start/stop it with should go in
/etc/rc.d/init.d, look in that dir for examples.
Now link that file to the runlevel you would want to run it in, /etc/rc.d/rc3.d for network & multiuser enabled level w/o graphical login, and /etc/rc.d/rc5.d for network & multiuser enabled level w graphical login. Don't forget to prefix it with a capital "S" and a number in the sequence, the "S" means start, and the seqnr is the time it's started at IMO the number should be higher than "networking".
Now add a link to /etc/rc.d/rc0 and /etc/rc.d/rc6, respectively shutdown and reboot levels, prefix it with a capital "K" for kill and a number in the sequence.

*If you don't want to go tru this you could add it to your rc.local to start it.
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make a program run at start up time. TruongAn Linux - Software 22 10-26-2005 06:50 PM
How do I start a program on boot ? overproof Mandriva 4 04-22-2005 07:13 AM
how to make a program start on startup Maver Linux - Software 9 06-13-2004 05:54 PM
program start at boot moonloader Slackware 4 03-08-2004 06:33 AM
Any way to make every program start in seperate process Squall Linux - General 3 02-03-2004 05:22 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration