Re: JSVC - two processes running as root

2013-07-24 Thread Rainer Jung
On 24.07.2013 17:34, Rainer Jung wrote: > On 18.07.2013 21:27, Shridev Makim wrote: >> Hello, >> We are trying to run tomcat7 as a daemon using JSVC in SunOS environment. >> The compiled jsvc executable is owned by root. We have modified daemon.sh >> that bundles with tomcat7 for our environment to

Re: JSVC - two processes running as root

2013-07-24 Thread Rainer Jung
On 18.07.2013 21:27, Shridev Makim wrote: > Hello, > We are trying to run tomcat7 as a daemon using JSVC in SunOS environment. > The compiled jsvc executable is owned by root. We have modified daemon.sh > that bundles with tomcat7 for our environment to run our tomcat instance. > When we execute th

Re: JSVC - two processes running as root

2013-07-23 Thread Ognjen Blagojevic
Chris, On 23.7.2013 23:05, Christopher Schultz wrote: Why bother changing the script when you can either set the TOMCAT_USER environment variable or pass --tomcat-user to the script? Speaking of which, maybe the TOMCAT_USER environment variable is actually set to "root", so modification of th

Re: JSVC - two processes running as root

2013-07-23 Thread Ognjen Blagojevic
Shridev, On 23.7.2013 20:41, Shridev Makim wrote: Here are the content of the script. Your script looks ok to me. 1. Do you actually have user "dmadmin6" on your system? Does "su - dmadmin6" works for you? 2. Did you compiled jsvc as described in the docs [1]? 3. Do you invoke your script

Re: JSVC - two processes running as root

2013-07-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Shridev, On 7/23/13 2:41 PM, Shridev Makim wrote: > Thanks guys for responding. Here are the content of the script. We > invoke this shell script with passing only one parameter named > "start". Only thing modified in the daemon.sh script was to cha

Re: JSVC - two processes running as root

2013-07-23 Thread Shridev Makim
On Tue, Jul 23, 2013 at 1:00 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Shridev, > > On 7/18/13 3:27 PM, Shridev Makim wrote: > > Hello, We are trying to run tomcat7 as a daemon using JSVC in SunOS > > environment. The com

Re: JSVC - two processes running as root

2013-07-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Shridev, On 7/18/13 3:27 PM, Shridev Makim wrote: > Hello, We are trying to run tomcat7 as a daemon using JSVC in SunOS > environment. The compiled jsvc executable is owned by root. We have > modified daemon.sh that bundles with tomcat7 for our envi

Re: JSVC - two processes running as root

2013-07-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ognjen, On 7/23/13 12:15 PM, Ognjen Blagojevic wrote: > Shridev, > > On 23.7.2013 16:14, Shridev Makim wrote: >> The version of tomcat installed is 7.0.32 if that helps. Anyone >> has seen this issue? How do we resolve this? > > FWIW, I'm running

Re: JSVC - two processes running as root

2013-07-23 Thread Ognjen Blagojevic
Shridev, On 23.7.2013 16:14, Shridev Makim wrote: The version of tomcat installed is 7.0.32 if that helps. Anyone has seen this issue? How do we resolve this? FWIW, I'm running JSVC for years, and I never saw anything similar. When we execute this shell script, it creates two processes and

Re: JSVC - two processes running as root

2013-07-23 Thread Shridev Makim
The version of tomcat installed is 7.0.32 if that helps. Anyone has seen this issue? How do we resolve this? Thanks, Shridev On Thu, Jul 18, 2013 at 3:27 PM, Shridev Makim wrote: > Hello, > We are trying to run tomcat7 as a daemon using JSVC in SunOS environment. > The compiled jsvc executable

JSVC - two processes running as root

2013-07-18 Thread Shridev Makim
Hello, We are trying to run tomcat7 as a daemon using JSVC in SunOS environment. The compiled jsvc executable is owned by root. We have modified daemon.sh that bundles with tomcat7 for our environment to run our tomcat instance. When we execute this shell script, it creates two processes and both t