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

RE: RE: Problems stopping SVNService manually

From: Daniel Thompson <Dan_at_thosethompsons.org>
Date: 2005-07-01 07:20:07 CEST

Yes--SVNService first tries to end SVNServe by sending it a ctrl-C via
GenerateConsoleCtrlEvent, but that depends on SVNServe being part of a
process group, which it doesn't seem to be when being run under the
service control manager, so it ends up just killing it (and sticking
that error-ish message in the event log). I don't think this is any
worse than a ctrl-C, since I don't think SVNServe has a custom console
control handler.

I have a modified version of SVNService that won't log this error (and
it will kill SVNServe quicker, instead of waiting 30 seconds). There are
other enhancements as well--for instance, Magnus's version polls every
second to see if it's time to quit, whereas the updated version blocks
on an event (thus avoiding context switches, paging, and blowing holes
in the cache every second). I tried emailing Magnus with my tweaked
version several weeks ago, but I haven't heard back from him. In the
meantime, if you like, I can send you a copy (with source, of course). I
don't yet have it posted anywhere on the 'net.

Dan

-----Original Message-----
From: McKenna, Simon (RGH) [mailto:Simon.McKenna@rgh.sa.gov.au]
Sent: Thursday, June 30, 2005 6:09 PM
To: 'users@subversion.tigris.org'
Subject: RE: Problems stopping SVNService manually

Confirmed. SVNServe daemon is killed by SVNService, just not very
gracefully.

Uninstalled 1.2.0 and re-installed 1.1.4, problem remains.
Happens through GUI or SC on command line.

Problem does not exist when controlling SVNServe through Firedaemon,
so does anyone know how to contact Magnus Norddahl?

heh - this might be a clue (from service.c):
--------------------------------------------
Disclaimer: Yes this code is so ugly (that I added, not the original
Craig Link stuff) that it may burn down your PC and kill your cat!
But what can I say...its C, and all I got is the platform SDK here.
--------------------------------------------

peace
si

-----Original Message-----
From: Bruno Gustavs [mailto:bg2svn@yahoo.de]
Sent: Thursday, June 30, 2005 20:20
To: users@subversion.tigris.org
Subject: Problems stopping SVNService manually

Environment:
- Subversion 1.2.0
- MS Windows XP Pro SP1 English or MS Windows Server 2003 SP1 English
- SVNService from http://dark.clansoft.dk/~mbn/svnservice/

Problem:
- When stopping the SVNService manually it creates the following event
log to Applications:
SVNServe did not shut down within 30 seconds after a CTRL+Break was sent
to it: ("D:\SVN\bin\svnserve.exe" "-d" "-r" "d:\svn\repository")

Remark:
- When Windows is shutting down there is no such event log.
- This problem is related to other posts concerning svnserve shutdown
but I could not find a solution to that problem.

Best Regards
Bruno Gustavs

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jul 1 07:23:19 2005

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

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