Auka Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/15299640623eb56bc37ba5f.gif)
Joined: 01 Jul 2002 Posts: 110 Location: Germany
|
Posted: Sun Jul 21, 2002 8:30 am Post subject: Tomcat Init Script (running tomcat non root!) |
|
|
Hi all!
I am trying to install tomcat on my server. So far everything is more or less fine - up and running. BUT the problem now is that with the current portage package no init script seems to be shipped (? at least I did two emerges and none was there for me). So as a quick and dirty solution (to at least get it working) I wrote a litte initscript wich simply invokes the start and stop shellscripts in /opt/jakarta/tomcat/bin/.
Now the real problem is that this leaves me with a tomcat runnnig as root!! uuuah. I suppose I do not have to tell anyone what a baaaad idea this is. I plan on running this server in a productive environment and everything else is already set up, but this is definitely a no-go.
All official RPMs create (AFAIK) a dedicated tomcat4 user and include an initscript which uses the deamon tools and su to this user. (Did not find this in the Jakarta CVS, but a probably current version of the InitScript is included in the source rpm from the apache website. http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/tomcat4-4.0.4-le.2jpp.src.rpm)
So is it just me or is there really no script included (and no unprivileged tomcat user created...)? If yes could anyone please fix this or has already done so? Else I would probably have to do this all (script, user, wrapper etc.) on my own - which so far I didn't manage... ;(
Thougth about filling a bug report, but first wanted to see if anyone here could help me...
Thank you very much!
Auka
PS: there is no package for the Tomcat LE Version available jet (i.e. if you already have SDK 1.4 installed), is it? |
|