Bug 56685

Summary: Tomcat7 daemon.sh did not start
Product: Tomcat 7 Reporter: lfuka
Component: IntegrationAssignee: Tomcat Developers Mailing List <dev>
Severity: normal    
Priority: P2    
Version: 7.0.54   
Target Milestone: ---   
Hardware: Sun   
OS: SunOS   

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
    if [ ! -x "$JSVC" ]; then

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).