Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #165767 > unrolled thread

"Debian Way" to automate startup of svnserve?

Started byMark Fletcher <mark27q1@gmail.com>
First post2016-03-21 15:20 +0100
Last post2016-03-21 16:20 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.debian.user


Contents

  "Debian Way" to automate startup of svnserve? Mark Fletcher <mark27q1@gmail.com> - 2016-03-21 15:20 +0100
    Re: "Debian Way" to automate startup of svnserve? Alberto Luaces <aluaces@udc.es> - 2016-03-21 16:20 +0100

#165767 — "Debian Way" to automate startup of svnserve?

FromMark Fletcher <mark27q1@gmail.com>
Date2016-03-21 15:20 +0100
Subject"Debian Way" to automate startup of svnserve?
Message-ID<rf8Qy-6S7-17@gated-at.bofh.it>
I am running Jessie updated weekly on a self-built PC with Intel Core
i7-920 and 24GB RAM. I am running an SVN server on this machine which is
used locally and by several other machines on my network including 2
Windows VMs hosted on this machine. My system uses systemd as that is
the Debian default these days and, although I know there is a great deal
of passion about systemd around, much of it negative, without meaning to
start a flame war I just don't see what all the fuss is about.

Anyway, back to my svnserve problem. I use svnserve rather than
bothering with the more complicated setup involving Apache as I have no
other reason to run an Apache server locally. I start svnserve manually
as my local user from the command line after booting the machine.
Although I only reboot infrequently it is annoying to have to remember
to start the server manually. I run svnserve on an unusual port and have
to remember to specify that and the location of my repository, which is
also non-default by choice. It's not a terrible imposition but it irks
me that I am not doing this the most efficient way I could.

So I set out to find out how to set up a systemd service to fire up
svnserve when my machine boots. I know that if I can get a
"svnserve.service" type file in the right place with the right content,
I can do "systemctl enable svnserve" as root and be off to the races for
future boots. I was surprised to be unable to find such a service file
anywhere in Debian. Any particular reason why Debian doesn't think SVN
should be started up automatically? And is there a "Debian Way" to set
this up, or should I just cobble something together by looking at other
systemd startup scripts?

Having played around with Linux From Scratch on another machine, I know
that systemd scripts for svnserve have been done -- curious as to why
Debian doesn't include one and if I'd be doing anything "wrong" from a
Debian perspective if I just lifted such a script from LFS and modified
it for my needs?

Thanks in advance

Mark

[toc] | [next] | [standalone]


#165772

FromAlberto Luaces <aluaces@udc.es>
Date2016-03-21 16:20 +0100
Message-ID<rf9MB-7wN-13@gated-at.bofh.it>
In reply to#165767
Mark Fletcher writes:

> Having played around with Linux From Scratch on another machine, I know
> that systemd scripts for svnserve have been done -- curious as to why
> Debian doesn't include one and if I'd be doing anything "wrong" from a
> Debian perspective if I just lifted such a script from LFS and modified
> it for my needs?

I guess there are so many ways to connect to a SVN server (SVN, SSH,
HTTP...) that it could be too limiting to establish one only "Debian
way" and force most of the users to deactivate it right away in order to
customize it to fit their needs.

I for example use inetd, but previously was using SSH.

-- 
Alberto

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web