Start SVN server after boot
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.
Related videos on Youtube
jjaros
Updated on September 18, 2022Comments
-
jjaros over 1 year
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 URLsvn://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
-
jjaros over 8 yearsThanks for answer, but
/etc/init.d/svnserve
script does not exist. -
Andy over 8 yearsCentOS 7 uses systemd, there will not be an init script
-
Recct over 8 yearsD'oh didn't see the tag! Well, good luck with systemd my friends.
-
jjaros over 8 yearsI found this topic on the SVN forum and it works perfectlly! goo.gl/BHjDtw