Mombu the GNU Linux Forum sponsored links

Go Back   Mombu the GNU Linux Forum > GNU_Linux > apache and tomcat as service
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 2nd September 10:37
vishalpahuja@hotmail.com
External User
 
Posts: 1
Default apache and tomcat as service



All:

I am newbie in the world of linux. I recently installed apache and
tomcat and made it work together. What I don't like about it is that I
have to start tomcat and apache everytime I reboot. Is there a way

-that they can be set up run as a service, and then configured to run
at startup?

OR

-Are there any scripts available that can run them on boot?

Also, How can I have some other processes run on startup? Or have them
run as a service?

Any ideas/pointers will be highly appreciated.

Regards

--Vish
  Reply With Quote


  sponsored links


2 2nd September 10:37
vishalpahuja@hotmail.com
External User
 
Posts: 1
Default apache and tomcat as service



All:

I am newbie in the world of linux. I recently installed apache and
tomcat and made it work together. What I don't like about it is that I
have to start tomcat and apache everytime I reboot. Is there a way

-that they can be set up run as a service, and then configured to run
at startup?

OR

-Are there any scripts available that can run them on boot?

Also, How can I have some other processes run on startup? Or have them
run as a service?

Any ideas/pointers will be highly appreciated.

Regards

--Vish
  Reply With Quote
3 2nd September 10:37
richards
External User
 
Posts: 1
Default apache and tomcat as service


There are several ways to configure your computer to run a service on
startup. The one that I use in my RH 9.0 configuration is to add the
link to /etc/rc.d/rc3.d, for those computers that boot up in text mode.
For computers that boot into Xwindows, add the link to /etc/rc.d/rc5.d.

Assuming that I wanted to start the apache server (httpd) on one of my
computers that boots directly into xwindows, I would add a link in the
/etc/rc.d/rc5.d directory to the service script residing in the
/etc/rc.d/init.d directory.

As root, create a symbolic link to the script:

cd /etc/rc.d/rc5.d
ln -s ../init.d/httpd S92httpd

That's all that there is to it. You've created a symbolic link, named
S92httpd, in your /etc/rc.d/rc5.d directory to the actual file, httpd,
that is in the /etc/rc.d/init.d directory. The next time you boot your
computer, all of the services listed in the /etc/rc.d/rc5.d that start
with S will be started, in numerical order.

(Remember the priority of services. Some services depend on other
services before they can run properly. For instance, I use nfs on most
computers. nfs requires that portmap and nfslock be started before it
can run, so I named the three services S13portmap, S14nfslock, and
S60nfs. Currently, I'm not running tomcat, but I am trying out resin,
that requires httpd. On that computer, I start httpd as S85httpd and
resinctl as S90resinctl.)

If you boot up in text mode, change rc5.d to rc3.d.
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666