RE: jsvc creates pid file owned by root

2008-09-06 Thread Martin Gainty
PROTECTED] To: users@tomcat.apache.org Subject: Re: jsvc creates pid file owned by root [EMAIL PROTECTED] wrote: See Thread at: http://www.techienuggets.com/Detail?tx=31984 Posted on behalf of a User You shouldn't be messing about with the ownership of the PID file. It is created

Re: jsvc creates pid file owned by root

2008-09-05 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=31984 Posted on behalf of a User You shouldn't be messing about with the ownership of the PID file. It is created by jsvc at startup. If you use jsvc properly it will start as root, create the pid file, startup tomcat ... Ah, but what if you

Re: jsvc creates pid file owned by root

2008-09-05 Thread Steve Cohen
[EMAIL PROTECTED] wrote: See Thread at: http://www.techienuggets.com/Detail?tx=31984 Posted on behalf of a User You shouldn't be messing about with the ownership of the PID file. It is created by jsvc at startup. If you use jsvc properly it will start as root, create the pid file, startup

Re: jsvc creates pid file owned by root

2008-04-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gunnar, Gunnar Boström wrote: | I would be fine with 644 but I don't know how to set that. | The file is owned by root so I'm not allowed to change it. | My umask is by default 0022 which should be okay. I tried to set the mask to | but no

Re: jsvc creates pid file owned by root

2008-04-12 Thread Alan Chaney
Hi Chris Christopher Schultz wrote: Are you sure you are changing the umask for the jsvc process? I wonder if the umask is being re-set to something else when jsvc elevates itself to root. You should ask the commons folks about how to do this with jsvc, as this is really off-topic, here (but

Re: jsvc creates pid file owned by root

2008-04-11 Thread Gunnar Boström
Hi, Answers to all of you who has responded. I would be fine with 644 but I don't know how to set that. The file is owned by root so I'm not allowed to change it. My umask is by default 0022 which should be okay. I tried to set the mask to but no change. I created a pid file with the

Re: jsvc creates pid file owned by root

2008-04-11 Thread Alan Chaney
You shouldn't be messing about with the ownership of the PID file. It is created by jsvc at startup. If you use jsvc properly it will start as root, create the pid file, startup tomcat, allow tomcat to bind to ports 80 and 443 and then switch to the user specified with -user switch. When you

Re: jsvc creates pid file owned by root

2008-04-10 Thread David Smith
Well ... here's the problem. jsvc needs that pid file to shutdown tomcat. It would be a real PITA if some user or script were to muck around and damage or delete that file. Having said that, most *nix systems have a sticky bit ability to force permissions on newly created files in specific

RE: jsvc creates pid file owned by root

2008-04-10 Thread Peter Crowther
[Mid-post - sorry!] From: David Smith [mailto:[EMAIL PROTECTED] Well ... here's the problem. jsvc needs that pid file to shutdown tomcat. It would be a real PITA if some user or script were to muck around and damage or delete that file. Having said that, most *nix systems have a sticky

Re: jsvc creates pid file owned by root

2008-04-10 Thread fredk2
Hi, can you set the umask before you run jsvc ? Rgds Fred Gunnar Boström wrote: Hi, I can start and stop Tomcat 5.5 with the jsvc program but the problem is that the pid file is created with permissions 600 and owned by root. I want to be able to read the pid file to check if the

Re: jsvc creates pid file owned by root

2008-04-10 Thread Mark H. Wood
Do you *really* want that file to be world-writable? Why not 644? -- Mark H. Wood, Lead System Programmer [EMAIL PROTECTED] Typically when a software vendor says that a product is intuitive he means the exact opposite. pgp8EEJOzvw1S.pgp Description: PGP signature