Bug 56685 - Tomcat7 daemon.sh did not start
Summary: Tomcat7 daemon.sh did not start
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 7
Classification: Unclassified
Component: Integration (show other bugs)
Version: 7.0.54
Hardware: Sun SunOS
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-30 13:36 UTC by lfuka
Modified: 2014-07-07 17:17 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lfuka 2014-06-30 13:36:03 UTC
When i run /opt/tomcat7/bin/daemon.sh start under tomcat user i got an error: /opt/tomcat7/bin/daemon.sh: test: argument expected

It happens on all Solaris platforms

There are missing quotes "" in if on lines 108 and 110.

It should be:
if [ -z "$JSVC" ]; then
    JSVC="$CATALINA_BASE/bin/jsvc"
    if [ ! -x "$JSVC" ]; then
        JSVC="$CATALINA_HOME/bin/jsvc"
    fi
fi

Solaris has problem without quotes.

Note: Its also bug in Tomcat8 daemon.sh
Comment 1 Mark Thomas 2014-07-07 15:32:44 UTC
Thanks for the report and suggested solution. This has been fixed in 8.0.x for 8.0.10 onwards and in 7.0.x for 7.0.55 onwards.
Comment 2 Konstantin Kolinko 2014-07-07 17:17:57 UTC
(This was a regression from bug 55297 fix - r1507096,  so only 7.0.43 and later are affected).