Artix Linux Forum

Init systems => runit => Topic started by: swdev1 on 12 May 2021, 12:05:01

Title: [SOLVED] Subversion / SVN Run File
Post by: swdev1 on 12 May 2021, 12:05:01
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
Title: Re: Subversion / SVN Run File
Post by: capezotte on 12 May 2021, 13:46:51
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).
Title: Re: Subversion / SVN Run File
Post by: swdev1 on 12 May 2021, 13:57:47
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 :)