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

Re: SVN as windows service?

From: Jostein Chr. Andersen <jostein_at_josander.net>
Date: 2004-05-29 19:04:23 CEST

On Saturday 29 May 2004 13.59, Patrick Mayweg wrote:
...
> >How does Apache do it? Is this an Apache or APR issue? I can't
> > imagine that's black belt programming when making svnserve to run as
> > a real service under Windows.
>
> The service code of apache is in server/mpm/winnt/service.c. Running
> as a service consists of 2 seperate task.
> 1. Using the service control manager to add or remove the service to
> the system.
> 2. Running as a service. This means comminicating with the service
> control manager for starting and stoping the service and running the
> real service normally as a seperate thread.

Thanks! This is the starting point I need.

The installer itself will deal with point 1 without problems. My problem
is point 2.

If we want to have a "real" service, then we must edit the existing code
for svnserve.
I will probably manage to do this, but it will take long time (my c
knowledge is limited, as an example, I used 3 days when writing my first
usable C program: packages/win32-innosetup/tools/svnpath/main.c, and
that program do still have some issues).

> Is is not black belt programming, but having a sample helps.

I think I found enought examples and C tutorials on the 'net about it.

> >It would be nice if someone can code it or give me a starting point
> > of turning svnserve for Windows into a real service.
>
> I have any questions about this, feel free to contact me via personal
> mail.

Thanks, I will (if you don't start coding it :-).

However, It might be a good idea to use the wrapper http://
dark.clansoft.dk/~mbn/svnservice/ which is suggested several places, but
a real service would be nice..

Jostein

-- 
http://www.josander.net/en/contact/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat May 29 19:04:58 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.