As you have RedHat Linux you can configure service using chkconfig.
(Above URL I got from google search)
Well its cool to use it thi utility but for RHEL 5.5 chkconfig is not present.
I would like to know about manually operations for these settings.
You can get chkconfig (if option is available for you) by installing chkconfig-126.96.36.199-2.el5 (this rpm package version is from 5.7, 5.5 may have different version). If you don’t have option to install chkconfig then you can, create startup script in /etc/init.d as mentioned on web page from the URL which I sent you earlier and create softlink for it as per your runlevel.
1. Create /etc/init.d/tomcat as mentioned on http://adityo.blog.binusian.org/?tag=redhat-run-level-and-how-to-make-tomcat-service-to-run-on-boot-time-in-centos
2. Suppose you want tomcat to be started in runlevel 3 and 5, create softlink for /etc/init.d/tomcat as below
ln –s /etc/init.d/tomcat /etc/rc3.d/S99tomcat
ln –s /etc/init.d/tomcat /etc/rc3.d/K99tomcat
ln –s /etc/init.d/tomcat /etc/rc5.d/S99tomcat
ln –s /etc/init.d/tomcat /etc/rc5.d/K99tomcat
(If you are aware about S99 and K99, instead of 99, you can choose the number as per your requirement. If you are not aware, use S99 and K99 as mentioned above.)
1 of 1 people found this helpful
Most UNIX-like Linux distrobutions have a /etc/rc.d/rc.local file in which you can append the required command, if you're planning to run Apache as a non-root user, merely start the command with sudo.
Thank's for your help....