Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Tomcat Init Script (running tomcat non root!)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Auka
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jul 2002
Posts: 110
Location: Germany

PostPosted: Sun Jul 21, 2002 8:30 am    Post subject: Tomcat Init Script (running tomcat non root!) Reply with quote

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?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum