1

I have installed SVN 1.8 and I have created repository in /var/svnrepos/svn/ directory. When I run SVN server with this command in terminal, everything work great and access from client to URL svn://svnserver/svn/ is successfull:

svnserve -d -r /var/svnrepos/

I want the SVN server run at system startup. I added the command above into /etc/rc.d/rc.local file. SVN server is running after boot, but when I access to server from client (TortoiseSVN), I get this message:

Unable to connect to a repository at URL 'svn://svnserver/svn'
Can't open file '/var/svnrepos/svn/format': Permission denied

1 Answer 1

2

Edit: In systemd case you'll need to install enable the relevant service instead: Services and Daemons Executing rc.local might need to be installed as a service itself or even if it is executed you might be trying to start svn service with an incorrect user.


Isn't SVN started with /etc/init.d/svnserve? EDIT: No because systemd is used instead, making the below relevant for earlier versions only

in which case you can create aliases to that script to start it in the relevant /etc/rc<runlevel>.d/ dirs. Or with update-rc.d if available.

4
  • Thanks for answer, but /etc/init.d/svnserve script does not exist.
    – jjaros
    Sep 30, 2015 at 9:16
  • CentOS 7 uses systemd, there will not be an init script
    – Andy
    Sep 30, 2015 at 9:18
  • D'oh didn't see the tag! Well, good luck with systemd my friends.
    – Recct
    Sep 30, 2015 at 9:20
  • I found this topic on the SVN forum and it works perfectlly! goo.gl/BHjDtw
    – jjaros
    Sep 30, 2015 at 10:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .