Changeset 0da88ea3


Ignore:
Timestamp:
07/20/2014 02:21:04 PM (10 years ago)
Author:
Krejzi <krejzi@…>
Branches:
7.6-blfs, 7.6-systemd, kde5-14269, kde5-14686, systemd-13485
Children:
3452097f
Parents:
932240d
Message:

More systemd integration merged from Christopher's branch.

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

Files:
5 edited
5 moved

Legend:

Unmodified
Added
Removed
  • TODO

    r932240d r0da88ea3  
    1 dbus
    21gpm
    32svn server
    43sendmail
    54iptables
     5wpa_supplicant
  • networking/netprogs/netprogs.xml

    r932240d r0da88ea3  
    2727  <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"/>
    29   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ntp.xml"/>
    30   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="rpcbind.xml"/>
    31   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="rsync.xml"/>
    32   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="samba.xml"/>
     29  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ntp-systemd.xml"/>
     30  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="rpcbind-systemd.xml"/>
     31  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="rsync-systemd.xml"/>
     32  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="samba-systemd.xml"/>
    3333  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="wget.xml"/>
    3434  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="wireless-tools.xml"/>
  • networking/netprogs/nfs-utils-systemd.xml

    r932240d r0da88ea3  
    199199
    200200        <para>
    201           To start the NFS Server daemons at boot,
     201          To start the NFS server daemons at boot,
    202202          install the systemd units from the <xref linkend="bootscripts"/>
    203203          package by running the following command as the
  • networking/netprogs/ntp-systemd.xml

    r932240d r0da88ea3  
    181181      and update the time each time <command>ntpd</command> is scheduled.</para>
    182182
    183       <para>If you choose Option one, then install the
    184       <filename>/etc/rc.d/init.d/ntp</filename>
    185       init script included in the
    186       <xref linkend="bootscripts"/> package.</para>
     183      <para>
     184        To start the <command>ntpd</command> daemon at boot,
     185        install the systemd unit from the <xref linkend="bootscripts"/>
     186        package by running the following command as the
     187        <systemitem class="username">root</systemitem> user:
     188      </para>
    187189
    188190      <indexterm zone="ntp ntp-init">
     
    197199
    198200<screen><literal>ntpd -q</literal></screen>
    199 
    200       <para>Execute the following command if you would like to set the
    201       hardware clock to the current system time at shutdown and reboot:</para>
    202 
    203 <screen role="root"><userinput>ln -v -sf ../init.d/setclock /etc/rc.d/rc0.d/K46setclock &amp;&amp;
    204 ln -v -sf ../init.d/setclock /etc/rc.d/rc6.d/K46setclock</userinput></screen>
    205 
    206       <para>The other way around is already set up by LFS.</para>
    207201
    208202    </sect3>
  • networking/netprogs/rpcbind-systemd.xml

    r932240d r0da88ea3  
    107107
    108108    <sect3 id="rpcbind-init">
    109       <title>Boot Script</title>
     109      <title>Systemd Units</title>
    110110
    111       <para>Install the <filename>/etc/rc.d/init.d/rpcbind</filename> init script
    112       included in the <xref linkend="bootscripts"/> package.</para>
     111      <para>
     112        To start the <command>rpcbind</command> daemon at boot,
     113        install the systemd unit from the <xref linkend="bootscripts"/>
     114        package by running the following command as the
     115        <systemitem class="username">root</systemitem> user:
     116      </para>
    113117
    114118      <indexterm zone="rpcbind rpcbind-init">
  • networking/netprogs/rsync-systemd.xml

    r932240d r0da88ea3  
    165165
    166166    <sect3 id="rsync-init">
    167       <title>Boot Script</title>
     167      <title>Systemd Units</title>
    168168
    169169      <para>Note that you only want to start the
    170170      <application>rsync</application> server if you want to provide an
    171171      <application>rsync</application> archive on your local machine.
    172       You don't need this script to run the
     172      You don't need this unit to run the
    173173      <application>rsync</application> client.</para>
    174174
    175       <para>Install the <filename>/etc/rc.d/init.d/rsyncd</filename> init
    176       script included in the
    177       <xref linkend="bootscripts"/> package.</para>
     175      <para>
     176        To start the <command>rsync</command> daemon at boot,
     177        install the systemd units from the <xref linkend="bootscripts"/>
     178        package by running the following command as the
     179        <systemitem class="username">root</systemitem> user:
     180      </para>
    178181
    179182<screen role="root"><userinput>make install-rsyncd</userinput></screen>
     183
     184      <note>
     185        <para>
     186          This package comes with two types of units: A service file and a socket file.
     187          The service file will start rsync daemon once at boot and it will keep running until the
     188          system shuts down. The socket file will make systemd listen on rsync port (Default 873, needs
     189          to be edited for anything else) and will start rsync daemon when something tries to connect
     190          to that port and stop the daemon when the connection is terminated. This is
     191          called socket activation.
     192
     193          By default, the first method is used - rsync daemon is started at boot and stopped at shutdown.
     194          If the socket method is desired, you need to run as the
     195          <systemitem class="username">root</systemitem> user:
     196
     197<screen role="root"><userinput>systemctl stop rsyncd &amp;&amp;
     198systemctl disable rsyncd &amp;&amp;
     199systemctl enable rsyncd.socket &amp;&amp;
     200systemctl start rsyncd.socket</userinput></screen>
     201
     202          Note that socket method is only useful for remote backups. For local backups you'll need the
     203          service method.
     204        </para>
     205      </note>
    180206
    181207    </sect3>
  • networking/netprogs/samba-systemd.xml

    r932240d r0da88ea3  
    114114    --with-piddir=/run/samba            \
    115115    --with-pammodulesdir=/lib/security  \
    116     --without-systemd                   \
    117116    --enable-fhs                        \
    118117    --enable-nss-wrapper                &amp;&amp;
     
    174173    <para><parameter>--enable-nss-wrapper</parameter>: Builds the nss-wrapper
    175174    library.</para>
    176 
    177     <para><parameter>--without-systemd</parameter>: Disable
    178     <application>systemd</application> integration, which is not part of
    179     LFS/BLFS. If you use <application>systemd</application>, replace by
    180     <parameter>--with-systemd</parameter>.</para>
    181175
    182176    <para><option>--enable-socket-wrapper</option> and
     
    398392
    399393      <sect4 id="samba-init">
    400         <title>Boot Script</title>
    401 
    402         <para>For your convenience, boot scripts have been provided for
    403         <application>Samba</application>. There are two included in the
    404         <xref linkend="bootscripts"/> package. The first,
    405         <filename>samba</filename>, will start the <command>smbd</command>
    406         and <command>nmbd</command> daemons needed to provide SMB/CIFS
    407         services. The second script, <filename>winbind</filename>, starts
    408         the <command>winbindd</command> daemon, used for providing Windows
    409         domain services to Linux clients.</para>
    410 
    411         <indexterm zone="samba samba-init">
    412           <primary sortas="f-samba">samba</primary>
    413         </indexterm>
    414 
    415         <indexterm zone="samba samba-init">
    416           <primary sortas="f-winbind">winbind</primary>
    417         </indexterm>
     394        <title>Systemd Units</title>
    418395
    419396        <para>The default <application>Samba</application> installation uses the
     
    431408    -s /bin/false -u 99 nobody</userinput></screen>
    432409
    433         <para>Install the <filename>samba</filename> script with the following
    434         command issued as the <systemitem class="username">root</systemitem>
    435         user:</para>
     410        <para>
     411          To start the <application>Samba</application> daemons at boot,
     412          install the systemd units from the <xref linkend="bootscripts"/>
     413          package by running the following command as the
     414          <systemitem class="username">root</systemitem> user:
     415        </para>
     416
     417        <indexterm zone="samba samba-init">
     418          <primary sortas="f-samba">samba</primary>
     419        </indexterm>
    436420
    437421<screen role="root"><userinput>make install-samba</userinput></screen>
    438422
    439         <para>If you also need the <filename>winbindd</filename>
    440         script to resolve names from Windows clients, run:</para>
     423        <para>
     424          To start the <command>winbindd</command> daemon at boot,
     425          install the systemd unit from the <xref linkend="bootscripts"/>
     426          package by running the following command as the
     427          <systemitem class="username">root</systemitem> user:
     428        </para>
     429
     430        <indexterm zone="samba samba-init">
     431          <primary sortas="f-winbindd">winbindd</primary>
     432        </indexterm>
    441433
    442434<screen role="root"><userinput>make install-winbindd</userinput></screen>
     435
     436        <note>
     437          <para>
     438            This package comes with two types of units: A service file and a socket file.
     439            The service file will start smbd daemon once at boot and it will keep running until the
     440            system shuts down. The socket file will make systemd listen on smbd port (Default 445, needs
     441            to be edited for anything else) and will start smbd daemon when something tries to connect
     442            to that port and stop the daemon when the connection is terminated. This is
     443            called socket activation.
     444
     445            By default, the first method is used - smbd daemon is started at boot and stopped at shutdown.
     446            If the socket method is desired, you need to run as the
     447            <systemitem class="username">root</systemitem> user:
     448
     449<screen role="root"><userinput>systemctl stop smbd &amp;&amp;
     450systemctl disable smbd &amp;&amp;
     451systemctl enable smbd.socket &amp;&amp;
     452systemctl start smbd.socket</userinput></screen>
     453
     454            Note that only smbd daemon can be socket activated.
     455          </para>
     456        </note>
    443457
    444458       </sect4>
  • networking/netutils/netutils.xml

    r932240d r0da88ea3  
    2929  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="traceroute.xml"/>
    3030  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="whois.xml"/>
    31   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="wicd.xml"/>
     31  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="wicd-systemd.xml"/>
    3232  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="wireshark.xml"/>
    3333
  • networking/netutils/wicd-systemd.xml

    r932240d r0da88ea3  
    115115    commands:</para>
    116116
    117 <screen><userinput>sed -i '/wpath.logrotate\|wpath.systemd/d' setup.py &amp;&amp;
    118 rm po/*.po                                          &amp;&amp;
     117<screen><userinput>rm po/*.po &amp;&amp;
    119118python setup.py configure --no-install-kde     \
    120119                          --no-install-acpi    \
     
    138137    in order for the build to complete.</para>
    139138
    140     <para><command>sed -i '/wpath...</command>: This <command>sed</command>
    141     prevents installation of <command>logrotate</command> and systemd
    142     configuration files. You may omit it if you use these utilities.</para>
    143 
    144139    <para><option>--no-install-kde</option>: Prevent installation of an
    145140    autostart desktop file for KDE. If you use KDE, you should instead install the
     
    175170
    176171    <sect3 id="wicd-init">
    177       <title>Configuration Information</title>
    178 
    179       <para>To automatically start Wicd at boot time, you need to first install
    180       the Wicd bootscript,
    181       <filename>/etc/rc.d/init.d/wicd</filename>,
    182       included in the <xref linkend="bootscripts"/> package
    183       (as user <systemitem class="username">root</systemitem>):</para>
     172      <title>Systemd Units</title>
     173
     174      <para>
     175        To start the <command>wicd</command> daemon at boot, enable
     176        the previously installed systemd unit by running the following command
     177        as the <systemitem class="username">root</systemitem> user:
     178      </para>
    184179
    185180      <indexterm zone="wicd wicd-init">
    186         <primary sortas="f-wicd">wicd (bootscript)</primary>
     181        <primary sortas="f-wicd">wicd</primary>
    187182      </indexterm>
    188183
    189       <screen role='root'><userinput>make install-wicd</userinput></screen>
    190 
    191       <para>Since Wicd will now handle all configuration of network devices,
    192       the network bootscript installed by LFS should be disabled. This can be
    193       achieved by either removing any <filename>S*network</filename> and
    194       <filename>K*network</filename> symlinks in the <filename>/etc/rc*.d</filename>
    195       directories or by setting <literal>ONBOOT=no</literal> in any
    196       <filename>/etc/sysconfig/ifconfig.*</filename> files.</para>
     184      <screen role="root"><userinput>systemctl enable wicd</userinput></screen>
    197185
    198186      <para>No manual configuration of Wicd is needed if you use the graphical
  • postlfs/security/openssh-systemd.xml

    r932240d r0da88ea3  
    319319      <note>
    320320        <para>
    321           Note that this package comes with two types of units: A service file and a socket file.
     321          This package comes with two types of units: A service file and a socket file.
    322322          The service file will start sshd daemon once at boot and it will keep running until the
    323           system shuts down. The socket file will make systemd listen to sshd port (Default 22, needs
     323          system shuts down. The socket file will make systemd listen on sshd port (Default 22, needs
    324324          to be edited for anything else) and will start sshd daemon when something tries to connect
    325325          to that port and stop the daemon when the connection is terminated. This is
Note: See TracChangeset for help on using the changeset viewer.