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
You can create the
conf file in the same directory as
run (/run/runit/service/svnserve)
Should look like:
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).
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 :)