Use chkconfig, redhats tool for manipulating which scripts/daemons you want
to run at runtime.
The trick with chkconfig is that it relies on certain directives being
present in the header of your script.
So, something like:
#!/bin/bash
# |
# chkconfig: 2345 55 25
# description: Script to start some server
echo "Hello World"
You also need to copy that script to /etc/init.d
Once this is done, go into the init.d directory and run the command:
chkconfig --add <script_name>
Don't ask me what the 2345 55 55 stuff means -- Its been a while since i did
this.
Hope this helps.
On Fri, May 23, 2008 at 7:47 AM, sur_1805 <[EMAIL PROTECTED]> wrote:
>
> i m using tomcat 6 with jdk 1.6 on linux(RHEL 5) machine . i put the script
> catalina.sh(startup and shutdown tomcat) in init.d directory and also make
> a
> link with the command given below
> ln -s /etc/init.d/catalina.sh S75tomcat
>
> in the /etc/rc5.d directory . but it does not automatically start the
> tomcat
> after reboot. please give the solution asap.
>
>
> --
> View this message in context:
> http://www.nabble.com/restart-tomcat-after-reboot-tp17423966p17423966.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: [email protected]
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>