Hello,

Seems not possible to pass options beside the known ones:

https://gitbox.apache.org/repos/asf?p=commons-daemon.git;a=blob;f=src/native/unix/native/arguments.c;h=8160c72944a7d7dae9cc8d43ec244f43a664a82f;hb=HEAD#l425

One option is to pass all unknown options to java, another is to pass only the 
missing --enable-preview and lastly an repeatable option  --add-jvm-arg 
"--enable-preview". I think passing the options might be most flexible, but it 
needs to make sure to correctly detect spaces

--start --enable-preview -splash:"/Home/Insane User/foto.jpg"

Maybe adding the one missing option is fastest.

As a workaround, maybe you can use environment variable JDK_JAVA_OPTIONS?

Bernd
--
http://bernd.eckenfels.net
________________________________
Von: ken edward <kedward...@gmail.com>
Gesendet: Friday, March 20, 2020 9:12:57 PM
An: Commons Users List <user@commons.apache.org>
Betreff: JSVC bug or developer oversight?

Hello,

How do you pass a command line parameter such as --enable-preview while
using JSVC?

jsvc -help  shows -X and -D but neither of these are appropriate for an
openjdk command line parameter like --enable-preview ?!?!?!?

    -D<name>=<value>
        set a Java system property
    -X<option>
        set Virtual Machine specific option

Ken

Reply via email to