Changeset 0da88ea3 for networking/netprogs/rsync-systemd.xml
- Timestamp:
- 07/20/2014 02:21:04 PM (10 years ago)
- Branches:
- 7.6-blfs, 7.6-systemd, kde5-14269, kde5-14686, systemd-13485
- Children:
- 3452097f
- Parents:
- 932240d
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
networking/netprogs/rsync-systemd.xml
r932240d r0da88ea3 165 165 166 166 <sect3 id="rsync-init"> 167 <title> Boot Script</title>167 <title>Systemd Units</title> 168 168 169 169 <para>Note that you only want to start the 170 170 <application>rsync</application> server if you want to provide an 171 171 <application>rsync</application> archive on your local machine. 172 You don't need this script to run the172 You don't need this unit to run the 173 173 <application>rsync</application> client.</para> 174 174 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> 178 181 179 182 <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 && 198 systemctl disable rsyncd && 199 systemctl enable rsyncd.socket && 200 systemctl 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> 180 206 181 207 </sect3>
Note:
See TracChangeset
for help on using the changeset viewer.