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
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.
(This was a regression from bug 55297 fix - r1507096, so only 7.0.43 and later are affected).