Bug 52750

Summary: daemon.sh does not allow to pass more than one option
Product: Tomcat 7 Reporter: Jeff MAURY <jeffmaury>
Component: PackagingAssignee: Tomcat Developers Mailing List <dev>
Severity: normal    
Priority: P2    
Version: 7.0.26   
Target Milestone: ---   
Hardware: Macintosh   
OS: All   

Description Jeff MAURY 2012-02-23 17:31:19 UTC
The daemon.sh that is packaged with 7.0.26 does not allow to pass more than one option (through the -- switch).
It appears that the shift statement inside a loop build from the command line parameter does not work as the list has been build before.

daemon.sh --catalina-pid /tmp/c.pid --tomcat-user x start

leads to the following error:

Usage: daemon.sh ( commands ... )
  run               Start Tomcat without detaching from console
  start             Start Tomcat
  stop              Stop Tomcat
  version           What version of commons daemon and Tomcat
                    are you running?
Comment 1 Mladen Turk 2012-02-23 18:22:40 UTC
Fixed in the 7.0.x (r1292878) branch and will be part of next release.