<?xml version="1.0" encoding="UTF-8"?>
<section version="5.0" xml:id="wb_startstop"
         xmlns="http://docbook.org/ns/docbook"
         xmlns:xlink="http://www.w3.org/1999/xlink"
         xmlns:xi="http://www.w3.org/2001/XInclude"
         xmlns:svg="http://www.w3.org/2000/svg"
         xmlns:m="http://www.w3.org/1998/Math/MathML"
         xmlns:html="http://www.w3.org/1999/xhtml"
         xmlns:db="http://docbook.org/ns/docbook">
  <title>Starting and Stopping Icinga</title>

  <para>There are different ways to start, stop, and restart Icinga. Depending
  on your installation, the most common example will be shown... In case of
  using the init script make sure you have performed</para>

  <programlisting>make install-init</programlisting>

  <para>or</para>

  <programlisting>make fullinstall</programlisting>

  <para>Tip: Always make sure you <xref linkend="wb_verifyconfig" /> before
  you (re)start Icinga.</para>

  <para><citetitle>Starting Icinga</citetitle></para>

  <orderedlist>
    <listitem>
      <para><emphasis role="bold">Init Script:</emphasis> The easiest way to
      start Icinga is by using the init script: <programlisting>/etc/init.d/icinga start</programlisting></para>
    </listitem>

    <listitem>
      <para><emphasis role="bold">Manually:</emphasis> You can start Icinga
      manually with the <emphasis role="bold">-d</emphasis> command line
      option: <programlisting>/usr/local/icinga/bin/icinga -d /usr/local/icinga/etc/icinga.cfg</programlisting></para>
    </listitem>
  </orderedlist>

  <para><citetitle>Restarting Icinga</citetitle></para>

  <para>Restarting/reloading is nececessary after you modified your
  configuration files and want those changes to take effect.</para>

  <orderedlist>
    <listitem>
      <para><emphasis role="bold">Init Script:</emphasis> The easiest way to
      reload/restart Icinga is by using the init script: <programlisting>/etc/init.d/icinga reload</programlisting>
      or <programlisting>/etc/init.d/icinga restart</programlisting></para>
    </listitem>

    <listitem>
      <para><emphasis role="bold">Manually:</emphasis> You can restart Icinga
      by sending it a SIGHUP signal: <programlisting>kill -HUP &lt;icinga_pid&gt;</programlisting></para>
    </listitem>
  </orderedlist>

  <para><citetitle>Stopping Icinga</citetitle></para>

  <orderedlist>
    <listitem>
      <para><emphasis role="bold">Init Script:</emphasis> The easiest way to
      stop Icinga is by using the init script: <programlisting>/etc/init.d/icinga stop</programlisting></para>
    </listitem>

    <listitem>
      <para><emphasis role="bold">Manually:</emphasis> You can stop by sending
      it a SIGTERM signal: <programlisting>kill &lt;icinga_pid&gt;</programlisting></para>
    </listitem>
  </orderedlist>
</section>
