You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2013/06/16 20:13:45 UTC

[Bug 55104] New: Allow passing arguments with spaces to Commons Daemon

https://issues.apache.org/bugzilla/show_bug.cgi?id=55104

            Bug ID: 55104
           Summary: Allow passing arguments with spaces to Commons Daemon
           Product: Tomcat 7
           Version: 7.0.41
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Integration
          Assignee: dev@tomcat.apache.org
          Reporter: marko.asplund@gmail.com

With the current version of the Commons Daemon wrapper script (daemon.sh) it's
not possible to pass arguments with spaces to jsvc.

For example jsvc fails to start with the following command:

JSVC_OPTS="-XX:OnOutOfMemoryError='/bin/ls foo bar'" daemon.sh start

The attached patch makes it possible to pass arguments with spaces to Commons
Daemon like this:

daemon.sh start -XX:OnOutOfMemoryError='/bin/ls foo bar'

The patch also allows daemon.sh invoker override hardcoded arguments (i.e.
"-wait"). Overriding the current wait default value is often required because
Tomcat startup may take a long time due to entropy read operation blocking by
default on Linux.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 55104] Allow passing arguments with spaces to Commons Daemon

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55104

--- Comment #1 from marko asplund <ma...@gmail.com> ---
Created attachment 30446
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30446&action=edit
allow passing arguments with spaces

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 55104] Allow passing arguments with spaces to Commons Daemon

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55104

marko asplund <ma...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marko.asplund@gmail.com

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org