On Fri, 2009-01-09 at 12:13 -0500, Michael DeHaan wrote: > Sudhakarraju@xxxxxxxxxxxxxxxxxxxx wrote: > > > > Hi, > > > > When I try to start and stop my Tomcat servers with Func it fails. > > > > ################### WARNING ##################### > > Cannot be executed as another user but "tomuser" > > > > > > Func is running as root and Tomcat is running as tomcatuser(tomuser). > > > > If I start the Func as tomcat user then I can't start and stop Apache > > server (Apache I needs to run under root using port 80) > > > > Please help me how to use service module for different users. > > > > > > Thanks in Advance > > > > Sudhakar Raju > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Func-list mailing list > > Func-list@xxxxxxxxxx > > https://www.redhat.com/mailman/listinfo/func-list > > If I'm interpreting this correctly, tomcat is complaining because you > are stopping the service as a root user? > > If the tomcat service cannot be stopped by a non-root user this is a bug > in the tomcat service init script, not func. This would cause all > sorts of problems elsewhere. > > Services should not do explict user id checks, and I'm suprised to see > that message in there. > > --Michael I used to start tomcat as a root user. Is the initV script of tomcat that change for you the user to use for run tomcat process: chown ${TOMCAT_USER}:${TOMCAT_USER} $CATALINA_PID So it's a bit strange your problem. Which distribution are you using? Bye Marco > > > _______________________________________________ > Func-list mailing list > Func-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/func-list -- Dott. Ing. Mornati Marco Byte-Code s.r.l via Antonio Cechov, 1 San Giuliano Milanese (MI) E-Mail: mmornati@xxxxxxxxxxxxx
Attachment:
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Func-list mailing list Func-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/func-list