source: server/other/rsync/rsync-config.xml@ 40330fcd

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb v5_0 v5_0-pre1 v5_1 v5_1-pre1 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 40330fcd was 46cef72, checked in by Larry Lawrence <larry@…>, 21 years ago

add rsync-2.5.6

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1009 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 2.5 KB
Line 
1<sect2>
2<title>Configuring <application>rsync</application></title>
3
4<sect3><title>Config files</title>
5
6<para><filename>/etc/rsyncd.conf</filename></para>
7<para>This is a simple download-only configuration. See the rsyncd man-page for
8additional options (i.e. user authentification).</para>
9
10<para><screen><userinput><command>cat &gt; /etc/rsyncd.conf &lt;&lt; "EOF"</command>
11# This is a basic rsync configuration file
12# It exports a single module without user authentification.
13
14motd file = /home/rsync/welcome.msg
15use chroot = yes
16
17[localhost]
18 path = /home/rsync
19 comment = Default rsync module
20 read only = yes
21 list = yes
22 uid = rsyncd
23 gid = rsyncd
24
25<command>EOF</command></userinput></screen></para>
26</sect3>
27
28<sect3><title>rsyncd init.d script</title>
29
30<para>Note that you only want to start the rsync server if you want to provide
31a rsync archive on your machine. The rsync client doesn't need this script to be
32sed. Having said that, if you want to run the rsync daemon, the rsyncd
33init.d script can be created using the following commands:</para>
34
35<para><screen><userinput><command>cat &gt; /etc/rc.d/init.d/rsyncd &lt;&lt; "EOF"</command>
36#!/bin/sh
37# Begin $rc_base/init.d/rsyncd
38
39# Based on sysklogd script from LFS-3.1 and earlier.
40# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
41
42source /etc/sysconfig/rc
43source $rc_functions
44
45case "$1" in
46 start)
47 echo "Starting RSYNC Server..."
48 loadproc /usr/bin/rsync --daemon --compress
49 ;;
50
51 stop)
52 echo "Stopping RSYNC Server..."
53 killproc /usr/bin/rsync
54 ;;
55
56 reload)
57 echo "Reloading RSYNC Server..."
58 reloadproc /usr/bin/rsync
59 ;;
60
61 restart)
62 $0 stop
63 sleep 1
64 $0 start
65 ;;
66
67 status)
68 statusproc /usr/bin/rsync
69 ;;
70
71 *)
72 echo "Usage: $0 {start|stop|reload|restart|status}"
73 exit 1
74 ;;
75esac
76
77# End $rc_base/init.d/rsyncd
78<command>EOF
79chmod 755 /etc/rc.d/init.d/rsyncd</command></userinput></screen></para>
80
81<para>Create the symbolic links to this file in the relevant
82<filename class="directory">rc.d</filename> directories with the following
83commands:
84<screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
85ln -sf ../init.d/rsyncd ../rc0.d/K30rsyncd &amp;&amp;
86ln -sf ../init.d/rsyncd ../rc1.d/K30rsyncd &amp;&amp;
87ln -sf ../init.d/rsyncd ../rc2.d/K30rsyncd &amp;&amp;
88ln -sf ../init.d/rsyncd ../rc3.d/S30rsyncd &amp;&amp;
89ln -sf ../init.d/rsyncd ../rc4.d/S30rsyncd &amp;&amp;
90ln -sf ../init.d/rsyncd ../rc5.d/S30rsyncd &amp;&amp;
91ln -sf ../init.d/rsyncd ../rc6.d/K30rsyncd</command></userinput></screen></para>
92
93</sect3>
94
95</sect2>
96
Note: See TracBrowser for help on using the repository browser.