[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svnserve could save its PID somewhere

From: Grzegorz B. Prokopski <gadek_at_debian.org>
Date: 2004-06-20 05:06:50 CEST

Hi,

Before filling in a wishlist bug, I am supposed to discuss it here
(according to "Issue Tracker Guidelines"), so here it goes.

I am in process of setting up different services in chroots
without /proc. This works just fine for pretty much all services as
most of daemons leave their "main deamon PID" in some .pid file,
usually in /var/run/$name.pid or /var/run/$name/$name.pid.
The PID is necessary to send a signal to daemon when we want it
to finish execution (and shut down nicely) [*]

For anonymous access to our repositories I wanted to setup
svnserve in a similar way. But apparently svnserve has no option
to create the .pid file. Therefore I wanted to ask you whether
it could be added, so that something of that shape worked:

        $ svnserve -d -p /var/run/svnserve/svnserve.pid

There are of course several possible (ugly) workarounds, like:
a) 'killall svnserve' - requires /proc, and can kill any process
  with this name, especially if killall is ran as root,
b) use --foreground option and force detach in start-stop-daemon
  (this is debian utility havily used in /etc/init.d scripts),
  then I'll be able to use PID taken by start-stop-daemon to
  stop the server (this is even _documented_ as "last resort",
  ugly method in s-s-d manual page).

On the contrary - I imagine this -p option should be rather trivial
to add and would solve this issue entirely, like it's done in all
other daemons.

Or is there any particular reason why it's not good idea?

Regards,

                        Grzegorz B. Prokopski

[*] Btw: what signal should I send to svnserve to let it know
that I want it to shut down? Is simple TERM (15) the way to go?

PS: I'll be thankful for Cc:ing me on replies.

-- 
Grzegorz B. Prokopski <gadek@debian.org>
Debian GNU/Linux      http://www.debian.org
SableVM - LGPLed JVM  http://www.sablevm.org
Why SableVM ?!?       http://devel.sablevm.org/wiki/Features
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jun 20 09:52:20 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.