Click to See Complete Forum and Search --> : Startup scripts


HarryGoiter
07-09-2001, 12:19 PM
How do I get httpd to startup automatically when my system starts? What I know so far is that I have to put some script in /etc/rc.d/rc#.d and name it S##scriptname. So I guess more specifically my question is, what do I put in that script file? Can I just put "apachectl start" (using apache)? And also do I put it in the rc3.d AND rc5.d directories if I want it to run whether I boot into runlevel 3 or 5? Thanks. Jenny

Whipping Boy
07-09-2001, 02:04 PM
SysV init sucks

Get a distro that uses BSD init. Much simpler to understand.

Pizza
07-09-2001, 02:40 PM
check out this post
its about starting vnc on boot
should give u a few hints
http://www.linuxnewbie.org/cgi-bin/ubbcgi/ultimatebb.cgi?ubb=get_topic&f=1&t=011051

Rob 'Feztaa' Park
07-09-2001, 06:01 PM
Telling someone to fix their problem by changing distro's is rather unreasonable.

I'm not entirely familiar with the rc#.d directories, but all that's in there look like symlinks to files in the init.d directory, which as far as I can tell does nothing.

So in other words, pretend rc#.d don't exist because they're useless to you.

What you want to do is go to the rc.d directory (no numbers in the filename) and look for an appropriate rc file.

For instance, a good place to put your iptables rules is in /etc/rc.d/rc.firewall (Although I don't think it actulaly matters where you put what, it's just a matter of organization)

This is all on Mandrake 8.0, btw, I don't know about the distro you're using.