Changeset d555a31 for general


Ignore:
Timestamp:
07/15/2014 01:58:24 PM (10 years ago)
Author:
Christopher Gregory <cjg@…>
Branches:
gnome
Children:
30c0de0
Parents:
5bc57bb
Message:

Converted svnserver mariadb postgresql dovecot exim postfix apache bind proftpd vsftpd openldap unbound and xinetd pages to systemd

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/svnserver.xml

    r5bc57bb rd555a31  
    224224    </sect3>
    225225
    226     <sect3 id="svnserver-init">
     226    <sect3 id="svnserver-init-systemd">
    227227      <title>4. Starting the Server</title>
    228 <!--
    229       <para>There are a couple of ways to start <command>svnserve</command>.
    230       The most common way is to start it as an <command>inetd</command> or
    231       <command>xinetd</command> process. Alternately, you can use a
    232       bootscript to start the service at startup.</para>
     228
     229      <para>The systemd-units package provides a native systemd unit file.
     230       To install and enable the systemd unit file included
     231       in the <xref linkend="systemd-units"/> package, run the following
     232       command as the <systemitem class="username">root</systemitem>user:
     233      </para>
    233234
    234235      <note>
    235         <para>If you do not wish to provide anonymous access to your svn
    236         repositories or use <command>svnserve</command>'s built-in
    237         authentication, you do not need to run
    238         <command>svnserve</command>.</para>
     236      <para>
     237        Note that the path to the svn repositories isn't being set. You'll need to
     238        edit /etc/default/svnserve and add "-r /path/to/svn/repos" to the
     239        SVNSERVE_OPTS= line. DO NOT RENAME svnserve and svn binaries to .orig counterparts,
     240        and don't create the wrapper scripts at all.
     241      </para>
    239242      </note>
    240243
    241       <para>If you use <command>inetd</command>, add a line to
    242       <filename>/etc/inetd.conf</filename> using the following
    243       commands:</para>
    244 
    245       <indexterm zone="svnserver svnserver-init">
    246         <primary sortas="e-etc-inetd.conf">/etc/inetd.conf</primary>
    247       </indexterm>
    248 
    249 <screen role="root"><userinput>cat &gt;&gt; /etc/inetd.conf &lt;&lt; "EOF"
    250 <literal>svn stream tcp nowait svn /usr/bin/svnserve svnserve -i</literal>
    251 EOF</userinput></screen>
    252 
    253       <para>If you use <command>xinetd</command>, the following command will
    254       create the <application>Subversion</application> server file as
    255       <filename>/etc/xinetd.d/svn</filename>:</para>
    256 
    257       <indexterm zone="svnserver svnserver-init ">
    258         <primary sortas="e-etc-xinetd.d-svn">/etc/xinetd.d/svn</primary>
    259       </indexterm>
    260 
    261 <screen role="root"><userinput>cat &gt;&gt; /etc/xinetd.d/svn &lt;&lt; "EOF"
    262 <literal># Begin /etc/xinetd.d/svn
    263 
    264 service svn
    265 {
    266         port                    = 3690
    267         socket_type             = stream
    268         protocol                = tcp
    269         wait                    = no
    270         user                    = svn
    271         server                  = /usr/bin/svnserve
    272         server_args             = -i -r /srv/svn/repositories
    273 }
    274 
    275 # End /etc/xinetd.d/svn</literal>
    276 EOF</userinput></screen> -->
    277 
    278       <para>To start the server at boot time, install the svn bootscript included
    279       in the <xref linkend="bootscripts"/> package.</para>
    280 
    281       <indexterm zone="svnserver svnserver-init">
     244      <para>
     245      Create /etc/systemd/system/svnserve.service.d/50-custom.conf file:
     246      </para>
     247
     248<screen role="root"><userinput>
     249
     250mkdir -p /etc/systemd/system/svnserve.service.d/ &amp;&amp;
     251echo "UMask=0002" &gt; /etc/systemd/system/svnserve.service.d/50-custom.conf
     252
     253</userinput></screen>
     254
     255      <indexterm zone="svnserver svnserver-init-systemd">
    282256        <primary sortas="f-svn">svn</primary>
    283257      </indexterm>
    284258
    285 <screen role="root"><userinput>make install-svn</userinput></screen>
     259<screen role="root"><userinput>make install-svnserve</userinput></screen>
    286260
    287261    </sect3>
Note: See TracChangeset for help on using the changeset viewer.