Bug 1102179 - /usr/sbin/tomcat attempts to source /etc/sysconfig/${NAME} but ${NAME} is not defined
Summary: /usr/sbin/tomcat attempts to source /etc/sysconfig/${NAME} but ${NAME} is not...
Keywords:
Status: CLOSED DUPLICATE of bug 1080195
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: tomcat
Version: el6
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Ivan Afonichev
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-28 14:45 UTC by C. Morgan Hamill
Modified: 2014-05-28 16:04 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-28 16:04:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description C. Morgan Hamill 2014-05-28 14:45:18 UTC
Description of problem:
The script /usr/sbin/tomcat at line 22 attempts the following:

# Get instance specific config file
if [ -r "/etc/sysconfig/${NAME}" ]; then
    . /etc/sysconfig/${NAME}
fi

${NAME} is not defined anywhere in this script nor is it exported by /etc/init.d/tomcat.  As a result, tomcat logs the following to stdout:

/usr/sbin/tomcat: line 22: .: /etc/sysconfig/: is a directory

Two issues:
- The `-r` test might be incorrect, as it succeeds when ${NAME} is undefined.  A check for `! -d` or somethign might be appropriate.
 - The whole bit is (I think) unecessary, as the init script takes care of sourcing /etc/init.d/${NAME}.


Version-Release number of selected component (if applicable):
7.0.33-3

How reproducible:
`service tomcat start; cat /var/log/tomcat/catalina.out`

Actual results:
/usr/sbin/tomcat: line 22: .: /etc/sysconfig/: is a directory

Expected results:
nothin

Additional info:
You're all very good humans.

Comment 1 Ivan Afonichev 2014-05-28 16:04:58 UTC

*** This bug has been marked as a duplicate of bug 1080195 ***


Note You need to log in before you can comment on or make changes to this bug.