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

File:
1 moved

Legend:

Unmodified
Added
Removed
  • 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>
Note: See TracChangeset for help on using the changeset viewer.