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 the
processes are owned by root as shown below (output of ps -ef | grep jsvc):
root 9109 9108 2 15:15:03 ? 0:37
root 9108 1 0 15:15:03 ? 0:00
We are running the shell script as a non privileged user (dmadmin6) and we
are even passing this user name with -user switch to jsvc. We were
expecting the child process (pid 9109) to be run as a non privileged user
(dmadmin6) in our case. Anyone else has experienced this?
Currently in production we have tomcat 6 configured to run with jsvc and in
that environment we see that the child process is running as a non