http://bugzilla.novell.com/show_bug.cgi?id=520038
User marc@marcchamberlin.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=520038#c7
Marc Chamberlin changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |ASSIGNED
Info Provider|marc@marcchamberlin.com |
--- Comment #7 from Marc Chamberlin 2009-07-09 14:28:31 MDT ---
Michal Here is the output from an attempt to restart the tomcat server and it
fails due to improper ownership of the file - catalina.out.
The sequence in which this occurs -
1 Tomcat server is running.
2.Delete all the files in /var/log/tomcat6
3.Restart the tomcat server
Note: If I first stop the tomcat server, then delete all the files in
/var/log/tomcat6 and then start the tomcat server it worked fine... Perhaps
this is the intended sequence but it would be nice if this was more robust and
work in the sequence that I did it when it failed.
sh -x /etc/init.d/tomcat6 restart
+ PATH=/bin:/sbin
++ basename /etc/init.d/tomcat6
+ NAME=tomcat6
+ unset ISBOOT
+ '[' t = S -o t = K ']'
+ '[' to = rc ']'
+ '[' -x /sbin/runuser ']'
+ SU=/bin/su
+ TOMCAT_CFG=/etc/tomcat6/tomcat6.conf
+ '[' -r /etc/tomcat6/tomcat6.conf ']'
+ . /etc/tomcat6/tomcat6.conf
++ JAVA_HOME=/etc/alternatives/jre
++ CATALINA_BASE=/usr/share/tomcat6
++ CATALINA_HOME=/usr/share/tomcat6
++ JASPER_HOME=/usr/share/tomcat6
++ CATALINA_TMPDIR=/var/cache/tomcat6/temp
++ TOMCAT_USER=tomcat
++ SECURITY_MANAGER=false
++ SHUTDOWN_WAIT=30
++ SHUTDOWN_VERBOSE=false
++ CATALINA_PID=/var/run/tomcat6.pid
+ '[' -r /etc/sysconfig/tomcat6 ']'
+ . /etc/sysconfig/tomcat6
++ JAVA_HOME=
++ JAVA_OPTS=
++ TOMCAT_OPTS=
++ CATALINA_OPTS=
+ CONNECTOR_PORT=8080
+ TOMCAT_SCRIPT=/usr/bin/dtomcat6
+ TOMCAT_PROG=tomcat6
+ TOMCAT_USER=tomcat
+ TOMCAT_LOG=/var/log/tomcat6/catalina.out
+ RETVAL=0
+ case "$1" in
+ parseOptions
+ options=
++ awk '!/^#/ && !/^$/ { ORS=" "; print "export ", $0, ";" }'
/etc/tomcat6/tomcat6.conf
+ options=' export JAVA_HOME="/etc/alternatives/jre" ; export
CATALINA_BASE="/usr/share/tomcat6" ; export CATALINA_HOME="/usr/share/tomcat6"
; export JASPER_HOME="/usr/share/tomcat6" ; export
CATALINA_TMPDIR="/var/cache/tomcat6/temp" ; export TOMCAT_USER="tomcat" ;
export SECURITY_MANAGER="false" ; export SHUTDOWN_WAIT="30" ; export
SHUTDOWN_VERBOSE="false" ; export CATALINA_PID="/var/run/tomcat6.pid" ; '
+ '[' -r /etc/sysconfig/tomcat6 ']'
++ awk '!/^#/ && !/^$/ { ORS=" ";
print "export ", $0, ";" }'
/etc/sysconfig/tomcat6
+ options=' export JAVA_HOME="/etc/alternatives/jre" ; export
CATALINA_BASE="/usr/share/tomcat6" ; export CATALINA_HOME="/usr/share/tomcat6"
; export JASPER_HOME="/usr/share/tomcat6" ; export
CATALINA_TMPDIR="/var/cache/tomcat6/temp" ; export TOMCAT_USER="tomcat" ;
export SECURITY_MANAGER="false" ; export SHUTDOWN_WAIT="30" ; export
SHUTDOWN_VERBOSE="false" ; export CATALINA_PID="/var/run/tomcat6.pid" ;
export JAVA_HOME="" ; export JAVA_OPTS="" ; export TOMCAT_OPTS="" ; export
CATALINA_OPTS="" ; '
+ TOMCAT_SCRIPT=' export JAVA_HOME="/etc/alternatives/jre" ; export
CATALINA_BASE="/usr/share/tomcat6" ; export CATALINA_HOME="/usr/share/tomcat6"
; export JASPER_HOME="/usr/share/tomcat6" ; export
CATALINA_TMPDIR="/var/cache/tomcat6/temp" ; export TOMCAT_USER="tomcat" ;
export SECURITY_MANAGER="false" ; export SHUTDOWN_WAIT="30" ; export
SHUTDOWN_VERBOSE="false" ; export CATALINA_PID="/var/run/tomcat6.pid" ;
export JAVA_HOME="" ; export JAVA_OPTS="" ; export TOMCAT_OPTS="" ; export
CATALINA_OPTS="" ; /usr/bin/dtomcat6'
+ stop
+ echo -n 'Stopping tomcat6: '
Stopping tomcat6: + '[' -f /var/lock/subsys/tomcat6 ']'
+ /bin/su - tomcat -c ' export JAVA_HOME="/etc/alternatives/jre" ; export
CATALINA_BASE="/usr/share/tomcat6" ; export CATALINA_HOME="/usr/share/tomcat6"
; export JASPER_HOME="/usr/share/tomcat6" ; export
CATALINA_TMPDIR="/var/cache/tomcat6/temp" ; export TOMCAT_USER="tomcat" ;
export SECURITY_MANAGER="false" ; export SHUTDOWN_WAIT="30" ; export
SHUTDOWN_VERBOSE="false" ; export CATALINA_PID="/var/run/tomcat6.pid" ;
export JAVA_HOME="" ; export JAVA_OPTS="" ; export TOMCAT_OPTS="" ; export
CATALINA_OPTS="" ; /usr/bin/dtomcat6 stop'
+ RETVAL=1
+ '[' 1 -eq 0 ']'
+ echo_failure
+ echo -en '\033[60G'
+ echo -n '[ '
[ + echo -n FAILED
FAILED+ echo -n ' ]'
]+ echo -ne '\r'
+ return 1
+ sleep 2
+ start
+ echo -n 'Starting tomcat6: '
Starting tomcat6: + '[' -f /var/lock/subsys/tomcat6 ']'
+ '[' -f /var/run/tomcat6.pid ']'
+ read kpid
+ checkpid 13875
+ local i
+ for i in '$*'
+ '[' -d /proc/13875 ']'
+ return 0
+ echo 'tomcat6 process already running'
tomcat6 process already running
+ return -1
+ exit 1
After this fails, doing an ls -al gives
drwxrwx--- 2 root tomcat 12288 2009-07-09 13:19 .
drwxr-xr-x 15 root root 4096 2009-07-08 12:18 ..
-rw-r--r-- 1 root root 84 2009-07-09 13:19 catalina.out
And as you can see root is the owner of catalina.out and no one but root has
write permission.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.