Bug 52750 - daemon.sh does not allow to pass more than one option
Summary: daemon.sh does not allow to pass more than one option
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 7
Classification: Unclassified
Component: Packaging (show other bugs)
Version: 7.0.26
Hardware: Macintosh All
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
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.