Hi All,
I am having some questions regarding the startup scripts in rc?.d dirs. Today I was trying to install tomcat 6.0.20 on my Jaunty Jakalope box. I was able to run it from bash. Also I created startup script in init.d. Till here everything went fine. After this, I tried to put the sript as a startup script. Here are the things I tried and the results..
1. created link K99tomcat in rc1.d and S99tomcat in rc2.d. Rebooted and the server was not started automatically.
2. removed old links and tried "update-rc.d tomcat defaults". Rebooted and the server didn't start at boot .
3. removed old links "update-rc.d -f tomcat remove" and created new links "update-rc.d tomcat start 99 2 3 4 5 . stop 99 0 1 6 .". Rebooted and server yet didn't start at boot :,(.
4. again removed old links and tried "update-rc.d tomcat start 99 2 3 4 5 S . stop 0 1 6 .". Now rebooted and voila it started properly.
Now my questions are these.
What I did wrong in initial 3 steps?
Also why the service started when I put it in rcS.d and why not in runlevel 2 3 4 5?
Is it the recommended way of adding scripts to startup or is there any other recommended way?
I am not very clear regarding rcS.d. Can somebody explain me the significance of this directory? I tried googling this, but didn't get any satisfactory links.
Regards,
Dumb Coder
Bookmarks