Click to See Complete Forum and Search --> : newbie: how to add services to start up


vanOssy
04-19-2001, 06:21 AM
Hi!
I know this is probably a stupid question, but I want apache, inet.d, mysql started on boot up. I tried it with drakconf/startupservices, but this did not work, because it did not save the changes i made. can anyone describe how to do it??

Pierre Lambion
04-19-2001, 06:42 AM
The easiest is probably to ad services in /etc/rc.local.

Or you can put symlinks from /etc/init.d corresponding script into the rc(n).d folder corresponding to your init level.

P.

Datanode
04-19-2001, 06:53 AM
Not sure if this will work on your distro but i presume it will if u look in your rc.d folders (mines /etc/rc.d/). You will have your different levels in there should be all your services. There is a way in which your setup prog determines which are on and which are not. In redhat services starting with a capital S are active on startup and K are not so look at those see which services are starting and which are not and find the difference in naming. It should be similar. But then i don't know anything about your distro and could be done in a completely different way.

Pierre Lambion
04-19-2001, 02:11 PM
I checked on my Debian. inetd goes in /etc/rc3.d as a symlink nammed S20inetd.

I guess you can start httpd and mysql in this same rc3.d. Just make sure you use a capital S to start the symlink.

Once again, if this doesn't work, put the commands that you will use to launch them manually (but with the full path) in rc.local.

bdg1983
04-19-2001, 05:10 PM
There's also the NHF on SysVinit (http://www.linuxnewbie.org/nhf/intel/osbooting/sysvinit.html) that may help you.