blob: 8293e7029582923e8c9fd031f2546c0fe9b050fb [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<refentry id='jsvc1'>
<refmeta>
<refentrytitle>JSVC</refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo class='date'>TBD</refmiscinfo>
<refmiscinfo class='source'>Jsvc version 1.2.4</refmiscinfo>
<refmiscinfo class='manual'>Apache Commons Daemon project</refmiscinfo>
</refmeta>
<refnamediv id='name'>
<refname>jsvc</refname>
<refpurpose>application to launch java daemon</refpurpose>
</refnamediv>
<!-- body begins here -->
<refsynopsisdiv id='synopsis'>
<cmdsynopsis>
<command>jsvc</command>
<arg choice='opt'>-jvm <replaceable>JVM name</replaceable></arg>
<arg choice='opt'>-client <replaceable>client JVM</replaceable></arg>
<arg choice='opt'>-server <replaceable>server JVM</replaceable></arg>
<arg choice='opt'>-classpath <replaceable>path</replaceable></arg>
<arg choice='opt'>-cp <replaceable>path</replaceable></arg>
<arg choice='opt'>-java-home <replaceable>directory</replaceable></arg>
<arg choice='opt'>-version</arg>
<arg choice='opt'>-help</arg>
<arg choice='opt'>-?</arg>
<arg choice='opt'>-nodetach</arg>
<arg choice='opt'>-debug</arg>
<arg choice='opt'>-check</arg>
<arg choice='opt'>-user <replaceable>user</replaceable></arg>
<arg choice='opt'>-wait <replaceable>waittime</replaceable></arg>
<arg choice='opt'>-restarts <replaceable>max restart count</replaceable></arg>
<arg choice='opt'>-umask <replaceable>mask</replaceable></arg>
<arg choice='opt'>-stop</arg>
<arg choice='opt'>-verbose<replaceable>:class|gc|jni</replaceable></arg>
<arg choice='opt'>-outfile <replaceable>/full/path/to/file</replaceable></arg>
<arg choice='opt'>-errfile <replaceable>/full/path/to/file</replaceable></arg>
<arg choice='opt'>-pidfile <replaceable>/full/path/to/file</replaceable></arg>
<arg choice='opt'>-Dproperty=<replaceable>value</replaceable></arg>
<arg choice='opt'>-X<replaceable>option</replaceable></arg>
<!-- end of the new arguments -->
</cmdsynopsis>
</refsynopsisdiv>
<refsect1 id="description">
<title>DESCRIPTION</title>
<para><command>jsvc</command> executes <emphasis remap="I">classfile</emphasis>
that implements a Daemon interface.</para>
</refsect1>
<refsect1 id="options">
<title>OPTIONS</title>
<variablelist remap="TP">
<varlistentry>
<term><option>-jvm</option> JVM name</term>
<listitem>
<para>use a specific Java Virtual Machine.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-client</option> client JVM</term>
<listitem>
<para>use a client Java Virtual Machine.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-server</option> server JVM</term>
<listitem>
<para>use a server Java Virtual Machine.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-cp/ -classpath</option> directory and zip/jar
files</term>
<listitem>
<para>set search path for service classes and resouces</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-java-home</option> directory</term>
<listitem>
<para>set the path of your JDK or JRE installation (or set
the JAVA_HOME environment variable)
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-version</option></term>
<listitem>
<para>show the current Java environment version (to check
correctness of -home and -jvm. Implies -nodetach)</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-help</option></term>
<listitem>
<para>show this help page (implies -nodetach)</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-nodetach</option></term>
<listitem>
<para>don't detach from parent process and become a daemon</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-debug</option></term>
<listitem>
<para>verbosely print debugging information</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-check</option></term>
<listitem>
<para>only check service (implies -nodetach)</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-stop</option></term>
<listitem>
<para>stop the service using the file given in the -pidfile option</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-wait</option> waittime</term>
<listitem>
<para>wait up to waittime seconds for the service to start
waittime should multiple of 10 (min=10)
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-restarts</option> max restart count</term>
<listitem>
<para>maximum automatic restart count
-1=infinite (default), 0=none, 1..(INT_MAX-1)=fixed count
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-umask</option> mask</term>
<listitem>
<para>sets the file mode creation mask
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-user</option> user</term>
<listitem>
<para>user used to run the daemon (defaults to current user)</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-verbose[:class|gc|jni]</option></term>
<listitem>
<para>enable verbose output</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-outfile</option> /full/path/to/file</term>
<listitem>
<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>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-errfile</option> /full/path/to/file</term>
<listitem>
<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>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-pidfile</option> /full/path/to/file</term>
<listitem>
<para>Location for output from the file containing the pid of jsvc
(defaults to /var/run/jsvc.pid)</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-D</option>&lt;name&gt;=&lt;value&gt;</term>
<listitem>
<para>set a Java system property</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-X</option>&lt;option&gt;</term>
<listitem>
<para>set Virtual Machine specific option</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 id='author'><title>AUTHOR</title>
<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>
</refsect1>
</refentry>