Ignore:
Timestamp:
07/20/2014 01:41:38 PM (10 years ago)
Author:
Krejzi <krejzi@…>
Branches:
systemd-11177
Children:
abf6e26b
Parents:
e39afa06
Message:

More systemd integration.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@13502 af4574ff-66df-0310-9fd7-8a98e5e911e0

Location:
networking/netprogs
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • networking/netprogs/netprogs.xml

    re39afa06 rd49cae5  
    2525  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ncftp.xml"/>
    2626  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="net-tools.xml"/>
    27   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="nfs-utils.xml"/>
     27  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="nfs-utils-systemd.xml"/>
    2828  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="netfs.xml"/>
    2929  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ntp.xml"/>
  • networking/netprogs/nfs-utils-systemd.xml

    re39afa06 rd49cae5  
    196196
    197197      <sect4 id="nfs-utils-server-init">
    198         <title>Boot Script</title>
    199 
    200         <para>Install the <filename>/etc/rc.d/init.d/nfs-server</filename>
    201         init script included in the <xref linkend="bootscripts"/> package
    202         to start the server at boot.</para>
     198        <title>Systemd Units</title>
     199
     200        <para>
     201          To start the NFS Server daemons at boot,
     202          install the systemd units from the <xref linkend="bootscripts"/>
     203          package by running the following command as the
     204          <systemitem class="username">root</systemitem> user:
     205        </para>
    203206
    204207<screen role="root"><userinput>make install-nfs-server</userinput></screen>
     
    208211        </indexterm>
    209212
    210         <para>Now create the <filename>/etc/sysconfig/nfs-server</filename>
    211         configuration file:</para>
    212 
    213 <screen role="root"><userinput>cat &gt; /etc/sysconfig/nfs-server &lt;&lt; "EOF"
    214 <literal>PORT="2049"
    215 PROCESSES="8"
    216 QUOTAS="no"
    217 KILLDELAY="10"</literal>
    218 EOF</userinput></screen>
    219 
    220         <note><para>The above parameters may be optionally placed in
    221         <filename>/etc/sysconfig/rc.site</filename>.</para></note>
     213        <para>You can edit the <filename>/etc/default/nfs-utils</filename>
     214        file to change the startup options for NFS daemons. Defaults should
     215        be fine for most use cases.</para>
    222216
    223217        <indexterm zone="nfs-utils nfs-utils-server-init">
    224           <primary
    225           sortas="e-etc-sysconfig-nfs-server">/etc/sysconfig/nfs-server</primary>
     218          <primary sortas="e-etc-default-nfs-utils">/etc/default/nfs-utils</primary>
    226219        </indexterm>
    227220
     
    284277
    285278      <sect4  id="nfs-utils-client-init">
    286         <title>Boot Script</title>
    287 
    288         <note><para>The following boot script is not required if the
    289         nfs-server script is installed.</para></note>
    290 
    291         <para>Install the <filename>/etc/rc.d/init.d/nfs-client</filename> init
    292         script included in the <xref linkend="bootscripts"/> package to start
    293         the client services at boot.</para>
     279        <title>Systemd Units</title>
     280
     281        <note><para>The following systemd unis are not required if the
     282        nfs-server units were previously installed.</para></note>
     283
     284        <para>
     285          To start the NFS client services at boot,
     286          install the systemd units from the <xref linkend="bootscripts"/>
     287          package by running the following command as the
     288          <systemitem class="username">root</systemitem> user:
     289        </para>
    294290
    295291<screen role="root"><userinput>make install-nfs-client</userinput></screen>
     
    297293        <indexterm zone="nfs-utils nfs-utils-client-config">
    298294          <primary sortas="f-nfs-client">nfs-client</primary>
    299         </indexterm>
    300 
    301         <para>To automatically mount <systemitem
    302         class="filesystem">nfs</systemitem> filesystems, clients will also need
    303         to install the <filename>netfs</filename> bootscript as described in
    304         <xref linkend="postlfs-config-netfs"/>.</para>
    305 
    306         <indexterm zone="nfs-utils nfs-utils-client-config">
    307           <primary sortas="f-netfs">netfs</primary>
    308295        </indexterm>
    309296
Note: See TracChangeset for help on using the changeset viewer.