Ignore:
Timestamp:
03/28/2004 01:46:42 AM (20 years ago)
Author:
Tushar Teredesai <tushar@…>
Branches:
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_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
fe88f584
Parents:
ff023d1
Message:

More2 bootscript changes

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/other/rsync/rsync-config.xml

    rff023d1 rae9c528  
    3434server if you want to provide a <application>rsync</application> archive on
    3535your machine. The <application>rsync</application> client doesn't need this
    36 script to be used.  Having said that, if you want to run the <application>rsync
    37 </application> daemon, the <application>rsync</application> daemon init.d script can be
    38 created using the following commands:</para>
     36script to be used.</para>
    3937
    40 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/rsyncd &lt;&lt; "EOF"</command>
    41 #!/bin/sh
    42 # Begin $rc_base/init.d/rsyncd
    43 
    44 # Based on sysklogd script from LFS-3.1 and earlier.
    45 # Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
    46 
    47 . /etc/sysconfig/rc
    48 . $rc_functions
    49 
    50 case "$1" in
    51     start)
    52         echo "Starting RSYNC Server..."
    53         loadproc /usr/bin/rsync --daemon --compress
    54         ;;
    55 
    56     stop)
    57         echo "Stopping RSYNC Server..."
    58         killproc /usr/bin/rsync
    59         ;;
    60 
    61     reload)
    62         echo "Reloading RSYNC Server..."
    63         reloadproc /usr/bin/rsync
    64         ;;
    65            
    66     restart)
    67         $0 stop
    68         sleep 1
    69         $0 start
    70         ;;
    71 
    72     status)
    73         statusproc /usr/bin/rsync
    74         ;;
    75 
    76     *)
    77         echo "Usage: $0 {start|stop|reload|restart|status}"
    78         exit 1
    79         ;;
    80 esac
    81 
    82 # End $rc_base/init.d/rsyncd
    83 <command>EOF
    84 chmod 755 /etc/rc.d/init.d/rsyncd</command></userinput></screen>
    85 
    86 <para>Create the symbolic links to this file in the relevant
    87 <filename class="directory">rc.d</filename> directories with the following
    88 commands:</para>
    89 <screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
    90 ln -sf ../init.d/rsyncd ../rc0.d/K30rsyncd &amp;&amp;
    91 ln -sf ../init.d/rsyncd ../rc1.d/K30rsyncd &amp;&amp;
    92 ln -sf ../init.d/rsyncd ../rc2.d/K30rsyncd &amp;&amp;
    93 ln -sf ../init.d/rsyncd ../rc3.d/S30rsyncd &amp;&amp;
    94 ln -sf ../init.d/rsyncd ../rc4.d/S30rsyncd &amp;&amp;
    95 ln -sf ../init.d/rsyncd ../rc5.d/S30rsyncd &amp;&amp;
    96 ln -sf ../init.d/rsyncd ../rc6.d/K30rsyncd</command></userinput></screen>
     38<para>Install <filename>/etc/rc.d/init.d/rsyncd</filename>
     39init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
     40                                                                                                               
     41<screen><userinput><command>make install-rsyncd</command></userinput></screen>
    9742
    9843</sect3>
Note: See TracChangeset for help on using the changeset viewer.