Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>in the 3.5.2 release of the wrapper, we added a possibility to achieve what you are asking for, by using "--" to precede parameters to the java application: <a href="https://sourceforge.net/tracker/?func=detail&amp;aid=3017567&amp;group_id=39428&amp;atid=425190" rel="nofollow noreferrer">https://sourceforge.net/tracker/?func=detail&amp;aid=3017567&amp;group_id=39428&amp;atid=425190</a></p> <p>this is basically working for calling the binary of the wrapper directly, but for shell script you can easily achieve the same by modifying it a bit:</p> <p>open the script and in the console(), start() ( and optionally launchdinternally()) set the command_line to the following:</p> <pre><code> COMMAND_LINE="$CMDNICE \"$WRAPPER_CMD\" \"$WRAPPER_CONF\" wrapper.syslog.ident=\"$APP_NAME\" wrapper.pidfile=\"$PIDFILE\" wrapper.name=\"$APP_NAME\" wrapper.displayname=\"$APP_LONG_NAME\" $ANCHORPROP $STATUSPROP $LOCKPROP $@" </code></pre> <p>note the $@ at the end.</p> <p>now, go to quite the end of the script, where it decides what function it should call (console, start, stop, restart, etc.)</p> <p>in the 'console', 'start' (and 'launchdinternal') set a shift and pass over the parameters from the commandline to the function:</p> <pre><code>'console') checkUser touchlock $1 shift console $@ ;; 'start') if [ "$DIST_OS" = "macosx" -a -f "/Library/LaunchDaemons/${APP_PLIST}" ] ; then macosxstart else checkUser touchlock $1 shift start $@ fi ;; </code></pre> <p>.. 'launchdinternal')</p> <pre><code> shift launchdinternal $@ ;; </code></pre> <p>after that, you can call the script like this:</p> <p>./script start|console -- para1 para2 ...</p> <p>hope this helps you out.</p> <p>cheers, christian</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload