chap-services.xml revision 7d19a158b53f47b175ba1e6aad07c79365847ae6
<?xml version="1.0" encoding="UTF-8"?>
<!--
! CCPL HEADER START
!
! This work is licensed under the Creative Commons
! Attribution-NonCommercial-NoDerivs 3.0 Unported License.
! To view a copy of this license, visit
! or send a letter to Creative Commons, 444 Castro Street,
! Suite 900, Mountain View, California, 94041, USA.
!
! You can also obtain a copy of the license at
! See the License for the specific language governing permissions
! and limitations under the License.
!
! If applicable, add the following below this CCPL HEADER, with the fields
! enclosed by brackets "[]" replaced with your own identifying information:
! Portions Copyright [yyyy] [name of copyright owner]
!
! CCPL HEADER END
!
! Copyright 2011-2012 ForgeRock AS
!
-->
<chapter xml:id='chap-services'
xmlns='http://docbook.org/ns/docbook'
version='5.0' xml:lang='en'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:schemaLocation='http://docbook.org/ns/docbook http://docbook.org/xml/5.0/xsd/docbook.xsd'
xmlns:xlink='http://www.w3.org/1999/xlink'
xmlns:xinclude='http://www.w3.org/2001/XInclude'>
<title>Managing OpenIDM Services</title>
<section xml:id="startup-shutdown">
<title>Starting & Stopping OpenIDM</title>
<para>By default you start and stop OpenIDM in interactive mode.</para>
<itemizedlist>
<para>To start OpenIDM interactively, open a terminal or command window,
change to the <filename>openidm</filename> directory, and run the startup
script:</para>
<listitem>
</listitem>
<listitem>
</listitem>
</itemizedlist>
<para>The startup script starts OpenIDM, and opens an OSGi console with a
<literal>-></literal> prompt where you can issue console commands.</para>
<para>To stop OpenIDM interactively in the OSGi console, enter the
<command>shutdown</command> command.</para>
<screen>-> shutdown</screen>
<orderedlist>
<para>You can also start OpenIDM as a background process on UNIX, Linux, and
Mac OS X. Follow these steps <emphasis>before starting OpenIDM for the first
time</emphasis>.</para>
<listitem>
<para>Disable <literal>ConsoleHandler</literal> logging before starting
and to comment out other references to <literal>ConsoleHandler</literal>,
as shown in the following excerpt.</para>
<programlisting language="ini">
# ConsoleHandler: A simple handler for writing formatted records to System.err
...
# --- ConsoleHandler ---
# Default: java.util.logging.ConsoleHandler.level = INFO
#java.util.logging.ConsoleHandler.filter=...</programlisting>
</listitem>
<listitem>
<para>Remove the text-based OSGi console bundle,
</listitem>
<listitem>
<para>Start OpenIDM in the background.</para>
<screen>$ /startup.sh &
[3] 454
$ /startup.sh
Using OPENIDM_OPTS: -Xmx1024m
Using LOGGING_CONFIG:
$</screen>
</listitem>
</orderedlist>
<para>To stop OpenIDM running as a background process, use the
<screen>$ /shutdown.sh
Stopping OpenIDM (454)</screen>
</section>
<section xml:id="command-line-tools">
<title>Command-Line Tools</title>
<variablelist>
<para>OpenIDM includes these command line tools in the
<filename>openidm</filename> directory.</para>
<varlistentry>
<listitem>
<para>This script supports the following subcommands.</para>
<variablelist>
<varlistentry>
<term><command>export</command></term>
<listitem>
<para>Export all objects</para>
</listitem>
</varlistentry>
<varlistentry>
<term><command>keytool</command></term>
<listitem>
<para>Export or import SecretKeyEntry values</para>
</listitem>
</varlistentry>
<varlistentry>
<term><command>validate</command></term>
<listitem>
<para>Validate all .json configuration files in the
<filename>conf/</filename> directory</para>
</listitem>
</varlistentry>
</variablelist>
</listitem>
</varlistentry>
<varlistentry>
<listitem>
<para>Utility to encrypt and decrypt values in JSON objects</para>
</listitem>
</varlistentry>
<varlistentry>
<listitem>
<para>Script to start OpenIDM and the OSGi console</para>
</listitem>
</varlistentry>
<varlistentry>
<listitem>
<para>Script to stop OpenIDM, especially when you run OpenIDM as a
background process</para>
</listitem>
</varlistentry>
</variablelist>
</section>
</chapter>