LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-09-2004, 08:11 AM   #1
hudy_rob
LQ Newbie
 
Registered: Oct 2004
Posts: 8

Rep: Reputation: 0
starting the script at boot time


Hi all!
I would like to start a bash script (mine own program) at boot time, so it starts like other ones from /etc/init.d/.

many thanks - Rob
 
Old 12-09-2004, 08:25 AM   #2
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
You could adapt and existing /etc/init.d script, selecting from one of the shorter ones, if you want something that puts up the [OK] messages, etc. (hint: Use the same includes!)...

Or a much easier solution is to append whatever you need to /etc/rc.d/rc.local which is the usual place for this kind of thing.
 
Old 12-09-2004, 09:42 AM   #3
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Rep: Reputation: 32
I have a little howto for this on my site.
My Linux Notes
Hope this helps.
 
Old 12-09-2004, 11:08 AM   #4
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
If you have a script you want to run when someone logs in, you can call it in /etc/profile. If you want it to run only at system start, add it to the end of /etc/rc.local as directed above.

HTH,
 
Old 12-09-2004, 11:29 AM   #5
hudy_rob
LQ Newbie
 
Registered: Oct 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Thank you very much guys! Rob
 
  


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
Problems getting a startup script starting at the correct time BrianK SUSE / openSUSE 3 11-13-2005 06:15 AM
Starting eth0 at boot time ? Antonius Linux - Newbie 1 01-19-2005 08:27 PM
starting a service at boot time fallen26 General 5 07-31-2004 01:21 PM
why smbfs not starting up at boot time? gkogut Linux - Networking 2 11-10-2003 06:47 PM
starting services at boot-time noisybastard Linux - Newbie 2 11-09-2003 06:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 12:28 PM.

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