Newbie Linux Question

2Xtreme21

Diamond Member
Jun 13, 2004
7,044
0
0
Edit: I found something about "Init" scripts from Google. http://directory.fedora.redhat.com/wiki/Howto:SysVInit

If making a startup script is that complex, I apologize. But is that what it's going to entail? Something of that length / caliber?


I was assigned the task of installing LDAP on a Linux box about two weeks ago. It would work, provided you type in a bunch of commands before opening up the LDAP console-- so I kinda put it on the back burner until I had a chance to look at it more. Well my chance is now, considering we're deploying the server here in about 3 hours...

I did a whole lot of google searching and could only find out how to make services start at startup. That and you need to put commands in certain notation for it to work in a certain file (/etc/rc.d/rc.local ?). Now I have root access to the server and multiple ways of accessing it (Webmin, Putty, etc.). Could anyone tell me where to put the following commands and in what notation to put them so it would run them everytime the box boots?

Thanks a lot for your help.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Your package manager should have installed a startup script for you.

Basically you write a script to run those. Put the script in /etc/init.d. Then create a symlink to it in /etc/rc?.d, where ? is your init level.
 

valar

Junior Member
Jun 9, 2006
3
0
0
I seem to remember having a file called something like /etc/bootmisc.sh where i kept all sorts of random crap i wanted to run at boot on my last debian system - not sure if other distro's have anything like this, and it's probably not considered the neat or correct way of doing things, but it got the job done for (lazy ol') me :)