delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/10/15/12:01:14

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,TW_SV
X-Spam-Check-By: sourceware.org
Message-ID: <4CB87ABA.60407@acm.org>
Date: Fri, 15 Oct 2010 09:00:58 -0700
From: David Rothenberger <daveroth AT acm DOT org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: svnserve as a service
References: <20101015124304 DOT 173650 AT gmx DOT net>
In-Reply-To: <20101015124304.173650@gmx.net>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 10/15/2010 5:43 AM, someone wrote:
> I tried to run svnserve as a windows service using the --service
> option, as explained in the SVN book. The service didn't start,
> reporting error 1053 instead. After a lot of googling and MSDN KB
> reading, I finally realised that it wasn't a service or local account
> rights problem, no, the version of svnserve shipped with cygwin
> simply doesn't support the --service option!
> 
> Is this intended? If so, why? What about a proper error message
> instead of that weird timeout error (which pops up instantly)? Is it
> a stupid idea to create and start a windows service from cygwin? I
> can't see the reason.

The --service option is only available in the native Windows port of
svnserve. "svnserve --service" does produce a message that the option
isn't valid. The error and timeout you got are from the Windows service
you created, not svnserve itself.

It is reasonable to use the Cygwin svnserve for a Windows service.
You'll need to use the Cygwin service wrapper cygrunsrv to do it. I just
setup a test one and it worked fine, using this command:

 % cygrunsrv --install svnserve \
     --path /usr/bin/svnserve \
     --args '-d --foreground -r /c/temp/svn-test' \
     --dep Tcpip

I also used the --user switch to cygrunsrv to install it as myself. The
default is to run the service as SYSTEM. You'd probably need to be
pretty careful with the ACLs for your repository if you want to run it
as SYSTEM, although I imagine you could get it to work.

I build the Cygwin subversion package so it directly uses as little of
the Windows API as possible. I may look into enabling the --service
option in a future release, but it's low on my list given there's a
perfectly acceptable Cygwin-standard way to do this.

-- 
David Rothenberger  ----  daveroth AT acm DOT org

boy, n:
        A noise with dirt on it.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019