jsvc -


<?xml version="1.0" encoding="utf-8" standalone="yes"?> <manpage xmlns="http://docbook2x.sourceforge.net/xmlns/Man-XML" sect="1" h1="JSVC" h2="1" h3="2023-05-10" h4="Jsvc version 1.3.4" h5="Apache Commons Daemon project" title="JSVC" preprocessors=""><SH>NAME</SH><refnameline><refname>jsvc</refname><refpurpose>application to launch java daemon</refpurpose></refnameline><SH>SYNOPSIS</SH><nh><TPauto align="l"><TPtag><b>jsvc</b> </TPtag><TPitem><para> [-jvm <i>JVM name</i>] [-client <i>client JVM</i>] [-server <i>server JVM</i>] [-classpath <i>path</i>] [-cp <i>path</i>] [-java-home <i>directory</i>] [-version] [-help] [-?] [-nodetach] [-debug] [-check] [-user <i>user</i>] [-wait <i>waittime</i>] [-restarts <i>max restart count</i>] [-umask <i>mask</i>] [-stop] [-verbose<i>:class|gc|jni</i>] [-outfile <i>/full/path/to/file</i>] [-errfile <i>/full/path/to/file</i>] [-pidfile <i>/full/path/to/file</i>] [-Dproperty=<i>value</i>] [-X<i>option</i>]</para></TPitem></TPauto></nh><SH>DESCRIPTION</SH><para><b>jsvc</b> executes <i>classfile</i>
that implements a Daemon interface.</para><SH>OPTIONS</SH><TP><TPtag><tt><b>-jvm</b></tt> JVM name</TPtag><TPitem><para>use a specific Java Virtual Machine.</para></TPitem></TP><TP><TPtag><tt><b>-client</b></tt> client JVM</TPtag><TPitem><para>use a client Java Virtual Machine.</para></TPitem></TP><TP><TPtag><tt><b>-server</b></tt> server JVM</TPtag><TPitem><para>use a server Java Virtual Machine.</para></TPitem></TP><TP><TPtag><tt><b>-cp/ -classpath</b></tt> directory and zip/jar
files</TPtag><TPitem><para>set search path for service classes and resouces</para></TPitem></TP><TP><TPtag><tt><b>-java-home</b></tt> directory</TPtag><TPitem><para>set the path of your JDK or JRE installation (or set
the JAVA_HOME environment variable)
</para></TPitem></TP><TP><TPtag><tt><b>-version</b></tt></TPtag><TPitem><para>show the current Java environment version (to check
correctness of -home and -jvm. Implies -nodetach)</para></TPitem></TP><TP><TPtag><tt><b>-help</b></tt></TPtag><TPitem><para>show this help page (implies -nodetach)</para></TPitem></TP><TP><TPtag><tt><b>-nodetach</b></tt></TPtag><TPitem><para>don’t detach from parent process and become a daemon</para></TPitem></TP><TP><TPtag><tt><b>-debug</b></tt></TPtag><TPitem><para>verbosely print debugging information</para></TPitem></TP><TP><TPtag><tt><b>-check</b></tt></TPtag><TPitem><para>only check service (implies -nodetach)</para></TPitem></TP><TP><TPtag><tt><b>-stop</b></tt></TPtag><TPitem><para>stop the service using the file given in the -pidfile option</para></TPitem></TP><TP><TPtag><tt><b>-wait</b></tt> waittime</TPtag><TPitem><para>wait up to waittime seconds for the service to start
waittime should multiple of 10 (min=10)
</para></TPitem></TP><TP><TPtag><tt><b>-restarts</b></tt> max restart count</TPtag><TPitem><para>maximum automatic restart count
-1=infinite (default), 0=none, 1..(INT_MAX-1)=fixed count
</para></TPitem></TP><TP><TPtag><tt><b>-umask</b></tt> mask</TPtag><TPitem><para>sets the file mode creation mask
</para></TPitem></TP><TP><TPtag><tt><b>-user</b></tt> user</TPtag><TPitem><para>user used to run the daemon (defaults to current user)</para></TPitem></TP><TP><TPtag><tt><b>-verbose[:class|gc|jni]</b></tt></TPtag><TPitem><para>enable verbose output</para></TPitem></TP><TP><TPtag><tt><b>-outfile</b></tt> /full/path/to/file</TPtag><TPitem><para>Location for output from stdout (defaults to
/dev/null). Use the value ’&amp;2’ to simulate
’1&gt;&amp;2’, or ’SYSLOG’ to send output to the system
log.</para></TPitem></TP><TP><TPtag><tt><b>-errfile</b></tt> /full/path/to/file</TPtag><TPitem><para>Location for output from stderr (defaults to
/dev/null). Use the value ’&amp;1’ to simulate
’2&gt;&amp;1’, or ’SYSLOG’ to send output to the system
log.</para></TPitem></TP><TP><TPtag><tt><b>-pidfile</b></tt> /full/path/to/file</TPtag><TPitem><para>Location for output from the file containing the pid of jsvc
(defaults to /var/run/jsvc.pid)</para></TPitem></TP><TP><TPtag><tt><b>-D</b></tt>&lt;name&gt;=&lt;value&gt;</TPtag><TPitem><para>set a Java system property</para></TPitem></TP><TP><TPtag><tt><b>-X</b></tt>&lt;option&gt;</TPtag><TPitem><para>set Virtual Machine specific option</para></TPitem></TP><SH>AUTHOR</SH><para>JSVC is part of the Apache Commons Daemon project. Authors are
Jean-Frederic Clere, Remy Maucherat, Yoav Shapira, Bill Barker, Mladen Turk. JSVC is
released under the Apache License Version 2.0.</para></manpage>


Updated 2024-01-29 - jenkler.se | uex.se