Changeset 6eb5ee1b for general/prog
- Timestamp:
- 07/20/2014 05:46:43 PM (10 years ago)
- Branches:
- systemd-11177
- Children:
- db7d0ff
- Parents:
- 941ebbb6
- Location:
- general/prog
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
general/prog/prog.xml
r941ebbb6 r6eb5ee1b 54 54 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="slang.xml"/> 55 55 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="subversion.xml"/> 56 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="svnserver .xml"/>56 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="svnserver-systemd.xml"/> 57 57 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="swig.xml"/> 58 58 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="tcl.xml"/> -
general/prog/svnserver-systemd.xml
r941ebbb6 r6eb5ee1b 81 81 <screen role="root"><userinput>groupadd -g 57 svntest && 82 82 usermod -G svntest -a svn</userinput></screen> 83 84 <para>Additionally you should set <command>umask 002</command> while85 working with a repository so that all new files will be writable by86 owner and group. This is made mandatory by creating a wrapper script for87 <command>svn</command> and <command>svnserve</command>:</para>88 89 <screen role="root"><userinput>mv /usr/bin/svn /usr/bin/svn.orig &&90 mv /usr/bin/svnserve /usr/bin/svnserve.orig &&91 cat >> /usr/bin/svn << "EOF"92 <literal>#!/bin/sh93 umask 00294 /usr/bin/svn.orig "$@"</literal>95 EOF96 cat >> /usr/bin/svnserve << "EOF"97 <literal>#!/bin/sh98 umask 00299 /usr/bin/svnserve.orig "$@"</literal>100 EOF101 chmod 0755 /usr/bin/svn{,serve}</userinput></screen>102 103 <note>104 <para>If you use <application>Apache</application> for working with105 the repository over HTTP, even for anonymous access, you should wrap106 <command>/usr/sbin/httpd</command> in a similar script.</para>107 </note>108 83 109 84 </sect3> … … 276 251 EOF</userinput></screen> --> 277 252 278 <para>To start the server at boot time, install the svn bootscript included 279 in the <xref linkend="bootscripts"/> package.</para> 253 <para> 254 To start the <command>svnserve</command> daemon at boot, 255 install the systemd unit from the <xref linkend="bootscripts"/> 256 package by running the following command as the 257 <systemitem class="username">root</systemitem> user: 258 </para> 280 259 281 260 <indexterm zone="svnserver svnserver-init"> 282 <primary sortas="f-svn ">svn</primary>261 <primary sortas="f-svnserve">svnserve</primary> 283 262 </indexterm> 284 263 285 <screen role="root"><userinput>make install-svn</userinput></screen> 264 <screen role="root"><userinput>make install-svnserve</userinput></screen> 265 266 <para>Additionally, the instructions above require that svn server 267 uses <command>umask 002</command> so that all new files will 268 be writable by owner and group. This can be achieved by creating 269 a systemd unit override file by running the following command:</para> 270 271 <screen role="root"><userinput>mkdir -p /etc/systemd/system/svnserve.service.d 272 echo "UMask=0002" > /etc/systemd/system/svnserve.service.d/99-user.conf</userinput></screen> 273 274 <para>Options which are passed to <command>svnserve</command> daemon 275 can be changed in <filename>/etc/default/svnserve</filename>.</para> 286 276 287 277 </sect3>
Note:
See TracChangeset
for help on using the changeset viewer.