Ask Your Question

how to change svn default repository path in fedora 20?

asked 2014-09-04 18:11:42 -0500

James Fedora gravatar image

updated 2014-09-05 10:48:00 -0500

mether gravatar image

I have latest Fedora20 and SVN. When svnserve.service starts, the default repository path, /var/svn, is passed in. But I don't want to put my repository there. I want put in there: /home/svn. I can use svnadmin to create repository there. if the default path, /var/svn, doesn't exist, the svnserve.service wouldn't start.

My question is how can I change that default parameter, passed in to the svnserve.service, to point to my new repository location?

if /var/svn is there:

$systemctl status svnserve.service
svnserve.service - Subversion protocol daemon
   Loaded: loaded (/usr/lib/systemd/system/svnserve.service; enabled)
   Active: active (running) since Thu 2014-09-04 10:25:12 EDT; 7h ago
 Main PID: 1128 (svnserve)
   CGroup: /system.slice/svnserve.service
           └─1128 /usr/bin/svnserve --daemon --pid-file=/run/svnserve/ -r /var/svn

above shows the /var/svn is passed as parameter at the last line. where I can modify that?

I want to user systemctl and make svnserver running automatically after each boot.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2014-09-05 01:30:15 -0500

jmcknight gravatar image

Take a look at /etc/sysconfig/svnserve. Edit that in your editor of choice, change OPTIONS="-r /var/svn" to OPTIONS="-r /home/svn" and run systemctl restart svnserve.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-09-04 18:11:42 -0500

Seen: 831 times

Last updated: Sep 05 '14