Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This 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.


  Search this Thread
Old 12-09-2005, 05:11 AM   #1
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: RedHat (RHEL, FC, CentOS), openSuSE, Mac OS X
Posts: 653

Rep: Reputation: 32
/etc/init.d running at boot time

Hello All

Quick (potentially) dumb question:

On slackware if I put a file in /etc/rc.d (as root) and make it executable, it will run next time I boot.

Sadly I don't have the luxury of Slackware at my disposal :P so I'm trying to get the same thing out of Mandrake.

I've got the choice of putting a script in /etc/init.d/ a la the rc.d option, BUT I'm not sure that will work, OR i can modify the /etc/rc.d/rc.local file and be reasonably certain it will work.

1) i don't want to reboot the production server to verify my hunch, and
2) I'm not sure what the better solution is.

What is the ideal MDK solution?

Thanks for any insight - Google doesn't seem to like me tonight
Old 12-10-2005, 03:29 AM   #2
Registered: Jan 2005
Posts: 178

Rep: Reputation: 31
MDK use system V style init. So first create a system V init script(which must accept "start|stop|restart" argument), make it executable, put it in /etc/init.d directory, cd to /etc/rcN.d (where N is your system's default runlevel), make a symlink point to the scripts in the /etc/init.d, give it a Snn prefix, S short for start, means service is to be started when system enters that runlevel, nn is two digit number specify the order to run the script, 01 first, 99 last.
Old 12-10-2005, 04:15 AM   #3
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: RedHat (RHEL, FC, CentOS), openSuSE, Mac OS X
Posts: 653

Original Poster
Rep: Reputation: 32
Sold! to the man with the clue.

Thanks for that, I'll give it a go - never understood how that all fit together


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
running dhcpd at boot time Fritz_Monroe Slackware 6 06-16-2005 07:43 PM
boot hangs after running /etc/init.d/boot.local eddieb Linux - Newbie 2 07-18-2004 07:57 AM
want to reduce system boot / init time 964racer Linux - Laptop and Netbook 7 06-09-2004 04:11 AM
Running scripts at boot time saintt Linux - Software 1 08-09-2002 06:03 AM
How to not init eth0 at boot time aldaeron Linux - Networking 4 08-07-2002 08:30 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration