commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann <>
Subject [daemon] Logfile permissions after starting Tomcat with jsvc
Date Fri, 08 Jan 2010 18:41:22 GMT
Hi everyone,

I'm facing the strange issue that the log files written by Tomcat 
(started by jsvc) end up with different permissions:

-rw-r--r-- access.2010-01-08.log
-rw------- catalina.2010-01-08.log
-rw------- host-manager.2010-01-08.log
-rw------- localhost.2010-01-08.log
-rw------- manager.2010-01-08.log

In contrast to the default logs, the access log is written by a valve.

IIUC according to lsof all files are written by the same process:

jsvc      24590    21w      catalina.2010-01-08.log
jsvc      24590    22w      localhost.2010-01-08.log
jsvc      24590    23w      manager.2010-01-08.log
jsvc      24590    24w      host-manager.2010-01-08.log
jsvc      24590   222w      access.2010-01-08.log

How is it possible that the permissions differ? I tried to set the umask 
explicitly in the init.d script that starts jsvc, but it only affected 
the access log. I'd like to set the group read permissions for all logfiles.

Thanks a lot for any hints!

-- Andreas

Andreas Hartmann, CTO
BeCompany GmbH
Tel.: +41 (0) 43 818 57 01

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message