Author: dj
Date: Sat Jun 11 11:14:42 2016
New Revision: 17481

Log:
[Systemd merge] - Section V

Modified:
   trunk/BOOK/server/databases/mariadb.xml
   trunk/BOOK/server/databases/postgresql.xml
   trunk/BOOK/server/mail/dovecot.xml
   trunk/BOOK/server/mail/exim.xml
   trunk/BOOK/server/mail/postfix.xml
   trunk/BOOK/server/mail/sendmail.xml
   trunk/BOOK/server/major/apache.xml
   trunk/BOOK/server/major/bind.xml
   trunk/BOOK/server/major/proftpd.xml
   trunk/BOOK/server/major/vsftpd.xml
   trunk/BOOK/server/other/openldap.xml
   trunk/BOOK/server/other/unbound.xml
   trunk/BOOK/server/other/xinetd.xml

Modified: trunk/BOOK/server/databases/mariadb.xml
==============================================================================
--- trunk/BOOK/server/databases/mariadb.xml     Fri Jun 10 23:47:47 2016        
(r17480)
+++ trunk/BOOK/server/databases/mariadb.xml     Sat Jun 11 11:14:42 2016        
(r17481)
@@ -362,11 +362,16 @@
     </sect3>
 
     <sect3 id="mariadb-init">
-      <title>Boot Script</title>
+      <title><phrase revision="sysv">Boot Script</phrase>
+             <phrase revision="systemd">Systemd Unit</phrase></title>
 
       <para>
-        Install the <filename>/etc/rc.d/init.d/mysql</filename> init script
-        included in the <xref linkend="bootscripts" revision="sysv"/>
+        Install the
+        <phrase revision="sysv"><filename>/etc/rc.d/init.d/mysql</filename> 
init
+        script</phrase>
+        <phrase revision="systemd"><filename>mysqld.service</filename>
+        unit</phrase> included in the
+        <xref linkend="bootscripts" revision="sysv"/>
         <xref linkend="systemd-units" revision="systemd"/> package as
         the <systemitem class="username">root</systemitem> user to start the
         <application>MariaDB</application> server during system boot-up.
@@ -376,7 +381,9 @@
         <primary sortas="f-mysql">mysql</primary>
       </indexterm>
 
-<screen role="root"><userinput>make install-mysql</userinput></screen>
+<screen role="root" revision="sysv"><userinput>make 
install-mysql</userinput></screen>
+
+<screen role="root" revision="systemd"><userinput>make 
install-mysqld</userinput></screen>
 
     </sect3>
 

Modified: trunk/BOOK/server/databases/postgresql.xml
==============================================================================
--- trunk/BOOK/server/databases/postgresql.xml  Fri Jun 10 23:47:47 2016        
(r17480)
+++ trunk/BOOK/server/databases/postgresql.xml  Sat Jun 11 11:14:42 2016        
(r17481)
@@ -246,10 +246,14 @@
     </sect3>
 
     <sect3  id="postgresql-init">
-      <title>Boot Script</title>
+      <title><phrase revision="sysv">Boot Script</phrase>
+             <phrase revision="systemd">Systemd Unit</phrase></title>
 
-      <para>Install the <filename>/etc/rc.d/init.d/postgresql</filename>
-      init script included in the
+      <para>Install the
+      <phrase revision="sysv"><filename>/etc/rc.d/init.d/postgresql</filename>
+      init script</phrase>
+      <phrase revision="systemd"><filename>postgresql.service</filename>
+      unit</phrase> included in the
       <xref linkend="bootscripts" revision="sysv"/>
       <xref linkend="systemd-units" revision="systemd"/> package.</para>
 

Modified: trunk/BOOK/server/mail/dovecot.xml
==============================================================================
--- trunk/BOOK/server/mail/dovecot.xml  Fri Jun 10 23:47:47 2016        (r17480)
+++ trunk/BOOK/server/mail/dovecot.xml  Sat Jun 11 11:14:42 2016        (r17481)
@@ -120,13 +120,21 @@
       commands:
     </para>
 
-<screen><userinput>./configure --prefix=/usr \
-            --sysconfdir=/etc \
-            --localstatedir=/var \
+<screen revision="sysv"><userinput>./configure --prefix=/usr                   
       \
+            --sysconfdir=/etc                      \
+            --localstatedir=/var                   \
             --docdir=/usr/share/doc/dovecot-&dovecot-version; \
             --disable-static &amp;&amp;
 make</userinput></screen>
 
+<screen revision="systemd"><userinput>./configure --prefix=/usr                
          \
+            --sysconfdir=/etc                      \
+            --localstatedir=/var                   \
+            --docdir=/usr/share/doc/dovecot-&dovecot-version; \
+            --disable-static                       \
+            --with-systemdsystemunitdir=/lib/systemd/system &amp;&amp;
+make</userinput></screen>
+
     <para>To test the results, issue <command>make -k check</command>. One test
     fails for unknown reason</para>
 
@@ -145,6 +153,12 @@
       href="../../xincludes/static-libraries.xml"/>
 
     <para>
+      <parameter>--with-systemdsystemunitdir=/lib/systemd/system</parameter>:
+      This switch is used to set the correct installation directory for
+      systemd units.
+    </para>
+
+    <para>
       <option>--with-ldap</option>: This switch enables
       <application>OpenLDAP</application> authentication support.
     </para>
@@ -243,19 +257,25 @@
     </sect3>
 
     <sect3 id="dovecot-init">
-      <title>Boot Script</title>
+      <title><phrase revision="sysv">Boot Script</phrase>
+             <phrase revision="systemd">Systemd Unit</phrase></title>
 
-      <para>If you want the <application>Dovecot</application> server to
-      start automatically when the system is booted, install the
-      <filename>/etc/rc.d/init.d/dovecot</filename> init script included
-      in the <xref linkend="bootscripts" revision="sysv"/>
-      <xref linkend="systemd-units" revision="systemd"/> package.</para>
+      <para revision="sysv">If you want the <application>Dovecot</application>
+      server to start automatically when the system is booted, install the
+      <filename>/etc/rc.d/init.d/dovecot</filename> init script included in the
+      <xref linkend="bootscripts"/> package.</para>
+
+      <para revision="systemd">To start the <command>dovecot</command>
+      daemon at boot, enable the previously installed systemd unit with the
+      following command:</para>
 
       <indexterm zone="dovecot dovecot-init">
         <primary sortas="f-dovecot">dovecot</primary>
       </indexterm>
 
-<screen role="root"><userinput>make install-dovecot</userinput></screen>
+<screen role="root" revision="sysv"><userinput>make 
install-dovecot</userinput></screen>
+
+<screen role="root" revision="systemd"><userinput>systemctl enable 
dovecot</userinput></screen>
 
     </sect3>
 

Modified: trunk/BOOK/server/mail/exim.xml
==============================================================================
--- trunk/BOOK/server/mail/exim.xml     Fri Jun 10 23:47:47 2016        (r17480)
+++ trunk/BOOK/server/mail/exim.xml     Sat Jun 11 11:14:42 2016        (r17481)
@@ -300,13 +300,16 @@
     </sect3>
 
     <sect3  id="exim-init">
-      <title>Boot Script</title>
+      <title><phrase revision="sysv">Boot Script</phrase>
+             <phrase revision="systemd">Systemd Unit</phrase></title>
 
-      <para>To automate the running of <command>exim</command> at startup,
-      install the <filename>/etc/rc.d/init.d/exim</filename> init script
+      <para>To automatically start <command>exim</command> at boot,
+      install the
+      <phrase revision="sysv"><filename>/etc/rc.d/init.d/exim</filename>
+      init script</phrase>
+      <phrase revision="systemd"><filename>exim.service</filename> 
unit</phrase>
       included in the <xref linkend="bootscripts" revision="sysv"/>
-      <xref linkend="systemd-units" revision="systemd"/>
-      package.</para>
+      <xref linkend="systemd-units" revision="systemd"/> package.</para>
 
       <indexterm zone="exim exim-init">
         <primary sortas="f-exim">exim</primary>
@@ -314,9 +317,10 @@
 
 <screen role="root"><userinput>make install-exim</userinput></screen>
 
-      <para>The bootscript also starts the <application>Exim</application>
-      daemon and dispatches a queue runner process every 15 minutes. Modify
-      the <option>-q<replaceable>&lt;time interval&gt;</replaceable></option>
+      <para revision="sysv">The bootscript also starts the
+      <application>Exim</application> daemon and dispatches a queue runner
+      process every 15 minutes. Modify the
+      <option>-q<replaceable>&lt;time interval&gt;</replaceable></option>
       parameter in <filename>/etc/rc.d/init.d/exim</filename>, if necessary
       for your installation.</para>
 

Modified: trunk/BOOK/server/mail/postfix.xml
==============================================================================
--- trunk/BOOK/server/mail/postfix.xml  Fri Jun 10 23:47:47 2016        (r17480)
+++ trunk/BOOK/server/mail/postfix.xml  Sat Jun 11 11:14:42 2016        (r17481)
@@ -401,12 +401,16 @@
     </sect3>
 
     <sect3 id="postfix-init">
-      <title>Boot Script</title>
+      <title><phrase revision="sysv">Boot Script</phrase>
+             <phrase revision="systemd">Systemd Unit</phrase></title>
 
       <para>
         To automate the running of Postfix at startup, install the
-        <filename>/etc/rc.d/init.d/postfix</filename> init script included in
-        the <xref linkend="bootscripts" revision="sysv"/>
+        <phrase revision="sysv"><filename>/etc/rc.d/init.d/postfix</filename>
+        init script</phrase>
+        <phrase revision="systemd"><filename>postfix.service</filename>
+        unit</phrase> included in the
+        <xref linkend="bootscripts" revision="sysv"/>
         <xref linkend="systemd-units" revision="systemd"/> package.
       </para>
 

Modified: trunk/BOOK/server/mail/sendmail.xml
==============================================================================
--- trunk/BOOK/server/mail/sendmail.xml Fri Jun 10 23:47:47 2016        (r17480)
+++ trunk/BOOK/server/mail/sendmail.xml Sat Jun 11 11:14:42 2016        (r17481)
@@ -260,11 +260,15 @@
     </sect3>
 
     <sect3  id="sendmail-init">
-      <title>Boot Script</title>
+      <title><phrase revision="sysv">Boot Script</phrase>
+             <phrase revision="systemd">Systemd Unit</phrase></title>
 
       <para>To automate the running of <application>sendmail</application>
-      at startup, install the <filename>/etc/rc.d/init.d/sendmail</filename>
-      init script included in the
+      at startup, install the 
+      <phrase revision="sysv"><filename>/etc/rc.d/init.d/sendmail</filename>
+      init script</phrase>
+      <phrase revision="systemd"><filename>sendmail.service</filename>
+      unit</phrase> included in the
       <xref linkend="bootscripts" revision="sysv"/>
       <xref linkend="systemd-units" revision="systemd"/> package.</para>
 
@@ -277,10 +281,11 @@
       <note>
         <para>The -qNm option to <command>sendmail</command>, where N is number
         of minutes, controls how often <application>sendmail</application> will
-        process the mail queue. A default of 5 minutes is used in the init
-        script. Individual workstation users may want to set this as low as 1
-        minute, large installations handling more mail may want to set it
-        higher.</para>
+        process the mail queue. A default of 5 minutes is used in the
+        <phrase revision="sysv">init script.</phrase>
+        <phrase revision="systemd">systemd unit.</phrase> Individual
+        workstation users may want to set this as low as 1 minute, large
+        installations handling more mail may want to set it higher.</para>
       </note>
 
     </sect3>

Modified: trunk/BOOK/server/major/apache.xml
==============================================================================
--- trunk/BOOK/server/major/apache.xml  Fri Jun 10 23:47:47 2016        (r17480)
+++ trunk/BOOK/server/major/apache.xml  Sat Jun 11 11:14:42 2016        (r17481)
@@ -267,13 +267,17 @@
     </sect3>
 
     <sect3  id="httpd-init">
-      <title>Boot Script</title>
+      <title><phrase revision="sysv">Boot Script</phrase>
+             <phrase revision="systemd">Systemd Unit</phrase></title>
 
       <para>
         If you want the <application>Apache</application> server to
         start automatically when the system is booted, install the
-        <filename>/etc/rc.d/init.d/httpd</filename> init script included
-        in the <xref linkend="bootscripts" revision="sysv"/>
+        <phrase revision="sysv"><filename>/etc/rc.d/init.d/httpd</filename>
+        init script</phrase>
+        <phrase revision="systemd"><filename>httpd.service</filename>
+        unit</phrase> included in the
+        <xref linkend="bootscripts" revision="sysv"/>
         <xref linkend="systemd-units" revision="systemd"/> package.
       </para>
 

Modified: trunk/BOOK/server/major/bind.xml
==============================================================================
--- trunk/BOOK/server/major/bind.xml    Fri Jun 10 23:47:47 2016        (r17480)
+++ trunk/BOOK/server/major/bind.xml    Sat Jun 11 11:14:42 2016        (r17481)
@@ -404,11 +404,15 @@
     </sect3>
 
     <sect3  id="bind-init">
-      <title>Boot Script</title>
+      <title><phrase revision="sysv">Boot Script</phrase>
+             <phrase revision="systemd">Systemd Unit</phrase></title>
 
       <para>To start the DNS server at boot, install the
-      <filename>/etc/rc.d/init.d/bind</filename> init script included
-      in the <xref linkend="bootscripts" revision="sysv"/>
+      <phrase revision="sysv"><filename>/etc/rc.d/init.d/bind</filename> init
+      script</phrase>
+      <phrase revision="systemd"><filename>named.service</filename>
+      unit</phrase> included in the
+      <xref linkend="bootscripts" revision="sysv"/>
       <xref linkend="systemd-units" revision="systemd"/> package.</para>
 
       <indexterm zone="bind bind-init">
@@ -418,9 +422,10 @@
 <screen role="root"><userinput>make install-bind</userinput></screen>
 
       <para>Now start <application>BIND</application> with
-      the new boot script:</para>
+      the following command:</para>
 
-<screen role="root"><userinput>/etc/rc.d/init.d/bind start</userinput></screen>
+<screen role="root" revision="sysv"><userinput>/etc/rc.d/init.d/bind 
start</userinput></screen>
+<screen role="root" revision="systemd"><userinput>systemctl start 
named</userinput></screen>
 
     </sect3>
 

Modified: trunk/BOOK/server/major/proftpd.xml
==============================================================================
--- trunk/BOOK/server/major/proftpd.xml Fri Jun 10 23:47:47 2016        (r17480)
+++ trunk/BOOK/server/major/proftpd.xml Sat Jun 11 11:14:42 2016        (r17481)
@@ -232,10 +232,15 @@
     </sect3>
 
     <sect3  id="proftpd-init">
-      <title>Boot Script</title>
+      <title><phrase revision="sysv">Boot Script</phrase>
+             <phrase revision="systemd">Systemd Unit</phrase></title>
 
-      <para>Install the <filename>/etc/rc.d/init.d/proftpd</filename> init
-      script included in the <xref linkend="bootscripts" revision="sysv"/>
+      <para>Install the 
+      <phrase revision="sysv"><filename>/etc/rc.d/init.d/proftpd</filename>
+      init script</phrase>
+      <phrase revision="systemd"><filename>proftpd.service</filename>
+      unit</phrase> included in the
+      <xref linkend="bootscripts" revision="sysv"/>
       <xref linkend="systemd-units" revision="systemd"/>
       package.</para>
 

Modified: trunk/BOOK/server/major/vsftpd.xml
==============================================================================
--- trunk/BOOK/server/major/vsftpd.xml  Fri Jun 10 23:47:47 2016        (r17480)
+++ trunk/BOOK/server/major/vsftpd.xml  Sat Jun 11 11:14:42 2016        (r17481)
@@ -215,12 +215,12 @@
       <title><phrase revision="sysv">Boot Script</phrase>
              <phrase revision="systemd">Systemd Unit</phrase></title>
 
-      <para revision="sysv">Install the
-      <filename>/etc/rc.d/init.d/vsftpd</filename> init script included in the
-      <xref linkend="bootscripts" revision="sysv"/> package.</para>
-
-      <para revision="systemd">Install the <filename>vsftpd.service</filename>
-      unit included in the
+      <para>Install the
+      <phrase revision="sysv"><filename>/etc/rc.d/init.d/vsftpd</filename> init
+      script</phrase>
+      <phrase revision="systemd"><filename>vsftpd.service</filename>
+      unit</phrase> included in the
+      <xref linkend="bootscripts" revision="sysv"/>
       <xref linkend="systemd-units" revision="systemd"/> package.</para>
 
 <screen role="root"><userinput>make install-vsftpd</userinput></screen>

Modified: trunk/BOOK/server/other/openldap.xml
==============================================================================
--- trunk/BOOK/server/other/openldap.xml        Fri Jun 10 23:47:47 2016        
(r17480)
+++ trunk/BOOK/server/other/openldap.xml        Sat Jun 11 11:14:42 2016        
(r17481)
@@ -410,14 +410,19 @@
     </sect3>
 
     <sect3 id="openldap-init">
-      <title>Boot Script</title>
+      <title><phrase revision="sysv">Boot Script</phrase>
+             <phrase revision="systemd">Systemd Unit</phrase></title>
 
       <para>
         To automate the startup of the LDAP server at system bootup,
-        install the <filename>/etc/rc.d/init.d/slapd</filename> init script
-        included in the <xref linkend="bootscripts" revision="sysv"/>
-        <xref linkend="systemd-units" revision="systemd"/> package
-        using the following command:
+        install the
+        <phrase revision="sysv"><filename>/etc/rc.d/init.d/slapd</filename>
+        init script</phrase>
+        <phrase revision="systemd"><filename>slapd.service</filename>
+        unit</phrase> included in the
+        <xref linkend="bootscripts" revision="sysv"/>
+        <xref linkend="systemd-units" revision="systemd"/>
+        package using the following command:
       </para>
 
       <indexterm zone="openldap openldap-init">
@@ -429,9 +434,10 @@
       <note>
         <para>
           You'll need to modify the
-          <filename>/etc/sysconfig/slapd</filename> to include the
-          parameters needed for your specific configuration. See the
-          <command>slapd</command> man page for parameter information.
+          <phrase 
revision="sysv"><filename>/etc/sysconfig/slapd</filename></phrase>
+          <phrase 
revision="systemd"><filename>/etc/default/slapd</filename></phrase>
+          to include the parameters needed for your specific configuration. See
+          the <command>slapd</command> man page for parameter information.
         </para>
       </note>
 
@@ -441,10 +447,14 @@
       <title>Testing the Configuration</title>
 
       <para>
-        Start the LDAP server using the init script:
+        Start the LDAP server using
+        <phrase revision="sysv">the init script:</phrase>
+        <phrase revision="systemd">systemctl:</phrase>
       </para>
 
-<screen role="root"><userinput>/etc/rc.d/init.d/slapd 
start</userinput></screen>
+<screen role="root" revision="sysv"><userinput>/etc/rc.d/init.d/slapd 
start</userinput></screen>
+
+<screen role="root" revision="systemd"><userinput>systemctl start 
slapd</userinput></screen>
 
       <para>
         Verify access to the LDAP server with the following command:

Modified: trunk/BOOK/server/other/unbound.xml
==============================================================================
--- trunk/BOOK/server/other/unbound.xml Fri Jun 10 23:47:47 2016        (r17480)
+++ trunk/BOOK/server/other/unbound.xml Sat Jun 11 11:14:42 2016        (r17481)
@@ -227,11 +227,15 @@
     </sect3>
 
     <sect3 id="unbound-init">
-      <title>Boot Script</title>
+      <title><phrase revision="sysv">Boot Script</phrase>
+             <phrase revision="systemd">Systemd Unit</phrase></title>
 
       <para>If you want the <application>Unbound</application> server to
       start automatically when the system is booted, install the
-      <filename>/etc/rc.d/init.d/unbound</filename> init script included
+      <phrase revision="sysv"><filename>/etc/rc.d/init.d/unbound</filename>
+      init script</phrase>
+      <phrase revision="systemd"><filename>unbound.service</filename>
+      unit</phrase> included
       in the <xref linkend="bootscripts" revision="sysv"/>
       <xref linkend="systemd-units" revision="systemd"/> package.</para>
 

Modified: trunk/BOOK/server/other/xinetd.xml
==============================================================================
--- trunk/BOOK/server/other/xinetd.xml  Fri Jun 10 23:47:47 2016        (r17480)
+++ trunk/BOOK/server/other/xinetd.xml  Sat Jun 11 11:14:42 2016        (r17481)
@@ -396,10 +396,14 @@
     </sect3>
 
     <sect3  id="xinetd-init">
-      <title>Boot Script</title>
+      <title><phrase revision="sysv">Boot Script</phrase>
+             <phrase revision="systemd">Systemd Unit</phrase></title>
 
       <para>As the <systemitem class="username">root</systemitem> user, install
-      the <filename>/etc/rc.d/init.d/xinetd</filename> init script included in
+      the <phrase revision="sysv"><filename>/etc/rc.d/init.d/xinetd</filename>
+      init script</phrase>
+      <phrase revision="systemd"><filename>xinetd.service</filename>
+      unit</phrase> included in
       the <xref linkend="bootscripts" revision="sysv"/>
       <xref linkend="systemd-units" revision="systemd"/> package.</para>
 
@@ -410,13 +414,20 @@
 <screen role="root"><userinput>make install-xinetd</userinput></screen>
 
       <para>As the <systemitem class="username">root</systemitem> user,
-      use the new boot script to start <command>xinetd</command>:</para>
-
-<screen role="root"><userinput>/etc/rc.d/init.d/xinetd 
start</userinput></screen>
-
-      <para>Check the <filename>/var/log/daemon.log</filename> to ensure the
-      appropriate services are started. If no services are enabled, the program
-      will not start without the <option>-stayalive</option> option.</para>
+      use the <phrase revision="sysv">new boot script</phrase>
+      <phrase revision="systemd"><command>systemctl</command> command</phrase>
+      to start <command>xinetd</command>:</para>
+
+<screen role="root" revision="sysv"><userinput>/etc/rc.d/init.d/xinetd 
start</userinput></screen>
+
+<screen role="root" revision="systemd"><userinput>systemctl start 
xinetd</userinput></screen>
+
+      <para>Check the
+      <phrase revision="sysv"><filename>/var/log/daemon.log</filename></phrase>
+      <phrase revision="systemd"><command>journalctl</command> output</phrase>
+      to ensure the appropriate services are started. If no services are
+      enabled, the program will not start without the
+      <option>-stayalive</option> option.</para>
 
 <!--
 <screen><literal>Aug 22 21:40:21 dps10 xinetd[2696]: Server 
/usr/sbin/in.rlogind is not
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to