Bug 52750 - daemon.sh does not allow to pass more than one option
daemon.sh does not allow to pass more than one option
Status: RESOLVED FIXED
Product: Tomcat 7
Classification: Unclassified
Component: Packaging
7.0.26
Macintosh All
: P2 normal (vote)
: ---
Assigned To: Tomcat Developers Mailing List
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2012-02-23 17:31 UTC by Jeff MAURY
Modified: 2012-02-23 18:22 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.

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

leads to the following error:

Usage: daemon.sh ( commands ... )
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
Right.
Fixed in the 7.0.x (r1292878) branch and will be part of next release.