You are not logged in.

#1 2014-11-20 20:37:55

ali0700
Member
Registered: 2014-11-20
Posts: 7

Subversion serving multiple repositories with systemd startup

Hello.
I'm trying to set up a simple svn server, serving multiple repositories.
I was able to correctly set up single repository using guide from archwiki, now I'm trying to serve multiple repositories.
I've modified the /etc/conf.d/svnserve file to point to parent directory of those repositories, so instead of

-r /path/to/repos/repo1

it reads

 
-r /path/to/repos

However when I try to start subversion I get the following output

? svnserve.service
   Loaded: error (Reason: Is a directory)
   Active: inactive (dead) since Thu 2014-11-20 21:17:01 CET; 18min ago
 Main PID: 24680 (code=killed, signal=TERM)

Now, when I try to start svnserve from shell, using this command

svnserve -d -r /path/to/repos

it starts normally and I am able to access all repositories. Adding and removing -d in /etc/conf.d/svnserve has no effect on error message.
Any thoughts?

Offline

#2 2014-11-20 21:17:45

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: Subversion serving multiple repositories with systemd startup

Did you run

svnadmin create /path/to/repos

You have to actually CREATE the respository in the folder you want. Note: I do NOT know if this will cause problems with the repo you already have. I would think that creating a repo on a folder that wasn't empty (your repo1 is there now) would be a problem.

Last edited by mrunion (2014-11-20 21:18:19)


Matt

"It is very difficult to educate the educated."

Offline

#3 2014-11-20 21:46:56

ali0700
Member
Registered: 2014-11-20
Posts: 7

Re: Subversion serving multiple repositories with systemd startup

Now, if I do that I'll have one repository with subdirectories, and each submission will increase version number on entire repository. I want to have several independent repositories, served by a single svnserve instance.

Offline

#4 2014-11-20 23:56:00

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: Subversion serving multiple repositories with systemd startup

Makes sense. Then I don't have any idea what the problem is. Could you possibly post the entire conf file with the actual folder/directory names you are using?


Matt

"It is very difficult to educate the educated."

Offline

#5 2014-11-21 06:09:03

ali0700
Member
Registered: 2014-11-20
Posts: 7

Re: Subversion serving multiple repositories with systemd startup

Sure, but there's not much else there:

#
# Parameters to be passed to svnserve
#
#SVNSERVE_ARGS="-r /path/to/some/repos"
SVNSERVE_ARGS=" -t -r /storage/repos/content --listen-port 3210"

Offline

#6 2014-11-21 13:57:34

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: Subversion serving multiple repositories with systemd startup

Then I am truly out of ideas.


Matt

"It is very difficult to educate the educated."

Offline

#7 2014-11-21 14:00:47

ali0700
Member
Registered: 2014-11-20
Posts: 7

Re: Subversion serving multiple repositories with systemd startup

Ok, for the time being I'm running it manually, without systemd.

Offline

#8 2014-11-21 14:29:16

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Subversion serving multiple repositories with systemd startup

And the unit file you're using looks like......

I smell a wrong service Type.

Offline

#9 2014-11-21 14:31:36

ali0700
Member
Registered: 2014-11-20
Posts: 7

Re: Subversion serving multiple repositories with systemd startup

This is the default svnserve.service I'm using:

[Unit]
Description=Subversion protocol daemon
After=syslog.target network.target

[Service]
Type=forking
EnvironmentFile=/etc/conf.d/svnserve
ExecStart=/usr/bin/svnserve --daemon $SVNSERVE_ARGS

[Install]
WantedBy=multi-user.target

Offline

#10 2014-11-21 14:37:30

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Subversion serving multiple repositories with systemd startup

And SVNSERVE_ARGS expands to what?

Offline

#11 2014-11-21 15:26:43

ali0700
Member
Registered: 2014-11-20
Posts: 7

Re: Subversion serving multiple repositories with systemd startup

Current /etc/conf.d/svnserve contains this:

SVNSERVE_ARGS=" -t -r /storage/repos/content --listen-port 3210"

but it still doesn't start, regardless if -t is present or not.

Offline

#12 2014-11-24 19:47:54

ali0700
Member
Registered: 2014-11-20
Posts: 7

Re: Subversion serving multiple repositories with systemd startup

The problem has been solved.
The error message:

Loaded: error (Reason: Is a directory)

came from systemctl, specifically from /etc/systemd/system/svnserve.service being a directory.
The fix was to remove that directory

sudo rm -rf /etc/systemd/system/svnserve.service

and enabling/starting svnserve

systemctl enable svnserve
systemctl start svnserve

Hope this will help someone having similar problem.

Offline

Board footer

Powered by FluxBB