Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Subversion / SVN Run File (Read 408 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

[SOLVED] Subversion / SVN Run File

The current subversion-runit run file is as follows

====
#!/bin/sh
[ -r conf ] && . ./conf
exec svnserve -d --foreground $OPTS
====

I have to make changes to this file to run subversion -that is I remove the ./conf line and change $OPTS to use --daemon --root </path/to/my/repository/root> --config-file </path/to/my/svn/config/file>
i.e exec svnserve --daemon --root </path/to/my/repository/root> --config-file </path/to/my/svn/config/file>

When there is an update to subversion-runit, my changes are lost.

So how can I prevent this from happening?

Can I use the ./conf file ? Where is this located? and what should be in it so that it would match my command line?

Thanks

Re: Subversion / SVN Run File

Reply #1
You can create the conf file in the same directory as run (/run/runit/service/svnserve)

Should look like:
Code: [Select]
OPTS='--daemon --root </path/to/my/repository/root> --config-file </path/to/my/svn/config/file>'
(it pretty much acts like a header for the run script).

Re: Subversion / SVN Run File

Reply #2
Many thanks.

Creating the conf file in the same place as the run file worked perfectly. I must have missed that when reading the documentation :)