-----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 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 > /doc/dmadmin6/product/tomcat7/bin/jsvc -java-home > /doc/dmadmin6/product/jdk6/jd root 9108 1 0 15:15:03 ? > 0:00 /doc/dmadmin6/product/tomcat7/bin/jsvc -java-home > /doc/dmadmin6/product/jdk6/jd > > 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 privileged user. http://commons.apache.org/proper/commons-daemon/jsvc.html#How_jsvc_works Note that jsvc is not a Tomcat component; it's part of Apache Commons. The jsvc daemon you use with Tomcat 6 is likely to be (virtually) identical to that which you use with Tomcat 7. You didn't tell us how you have modified the daemon.sh script, so we have no idea what could be happening. It would be good if you could give us much, much more detail. Thanks, - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJR7ranAAoJEBzwKT+lPKRYcVEQAKtvpN4keXKsKMi5LLApCbcb S2LPrmveT5Ij+G7vFc5I8ngXx2qxC50wgUb4sKBVKb/nblgFWPyoO2eGPPbTvWMn 62CG6vdGUIkmTFYuInJQcYPyLYjoLtpSSfaQw3lC3lkrNAYOWi5k0yhSz/DMUGWU HPLOLiM6VAffwAO3zOOhWROb8/zIQ1yaeFSP52wF0W/YR22MlrABJItb908tY7PH 3Zg6XqM7Vw/W9JUy5a0VlATd6vfOsPvXwcasm7/XHmjkh3cTscfV/3Vxz0Zeh4vR awXgR/8/uJyRsroD80NIUIEeIfV2+iZf2siuZTVjTpZEhG1lPrpTEYSic+TvmicG gs5RPMKwGAfDAR1R3opa7zILakqHsreAHfJpTAfuIz/tZrX/iJv+zqCHp4+V2lII asoAR7xZd33P2ckaJObjVuC9Y0nkRV4lQOX3yymMrVgk+TbWcbV49bwgAS97hVq3 YLsG3x0MNzhntnoDG44R+bOkvYdOOu9cVQcZukz2roK6wT7vcKpEGb4QGovaPNt5 zOpZyiAFB/JyFvn2hbmYdKB4c1+hzHdp1TDj01JnFBcqegMzosM20X7pTwTdDpxP 2aD3SV8DZ4GzgM0BNQplzVQGbQE+YskhFFOGYaP3j0W8RyVVpjmFW/JedfHEPezN UroOUgy+SugSsLz2ZedP =aSbM -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org