delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/09/25/21:17:49

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:references:to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=klEbOglgJYbOK4ET
OrxNpB5JZaM6JouyRvSFr8pCAS3krMQxgCdmfbmJ6/f3qU5hnt7aCfJkyO4bmZGj
mNn/NSph26EOShOYP7elxHIgMzbhyooP4YdY2Gt8x1agYmZAAeW8jpmMZuBsS+0O
kdjKm0gdx4Nnc/FlO6FAXkKemg4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:references:to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=u/beG0OHKrP9ik4NBJx7CL
ohv3U=; b=Q5qbYUizT8wjnepv+QL0Ch8vddECCDQ3OiBb303eGkPpUANe2SrXyZ
FHZeclnij63OTOKQ3YUE+EmEMY6h9K48Oh9cQ96k/NPA5k6vtLvy98ilaImVug+u
IG4Ro2i8ZP095rSGcJQ1wekd4GVd4xVzto+ssa5DlxIciKKZoAhTY=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*RU:64.59.134.12, Hx-spam-relays-external:64.59.134.12, sk:service, H*R:D*ca
X-HELO: smtp-out-no.shaw.ca
X-Authority-Analysis: v=2.2 cv=JOx5iICb c=1 sm=1 tr=0 a=WqCeCkldcEjBO3QZneQsCg==:117 a=WqCeCkldcEjBO3QZneQsCg==:17 a=IkcTkHD0fZMA:10 a=Z3hA1ZD5Ysxc6-KruC0A:9 a=QEXdDO2ut3YA:10
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
Subject: Re: Setting up cygrunsrv after moving installation to another drive
References: <f042eafe-1ec7-6679-08da-015cc69c64a9 AT raelity DOT com>
To: cygwin AT cygwin DOT com
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Message-ID: <0df3b6e4-3435-7e51-58ad-31b4f9a4e4ff@SystematicSw.ab.ca>
Date: Sun, 25 Sep 2016 19:17:26 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0
MIME-Version: 1.0
In-Reply-To: <f042eafe-1ec7-6679-08da-015cc69c64a9@raelity.com>
X-CMAE-Envelope: MS4wfL5JGGQUUEj60FXLaU4P36yh/xlG4vRQ2KwpDf8upxgemJRq5p9d7Wg/6IiubDnySULuheq+iqGwv93qs5UvuCKqXlHWGLK6UNK4ZUe6/oau8lN0+ChE tp6TKvyLJ9Og9IvBWcfE6voln7FtfAazzK7WAD2ZPnBZImTBJ2cem+22uuK3ZGVkEz/fQZZON0+gYg==
X-IsSubscribed: yes

On 2016-09-25 17:28, Ernie Rael wrote:
> I have just moved (robocopy) cygwin installation from C:/cygwin64 to F:/cygwin64 (win7). My stumbling block is handling cygrunsrv.
>
> For cygrunsrv, I thought I could change the service properties to start it from F:/..., but I can't figure out how to do that on Win7.
>
> Any suggestions on how best to get cygrunsrv going/installed after moving cygwin installation?

$ sc qc cygserver
will show how the service is currently configured e.g.

[SC] QueryServiceConfig SUCCESS

SERVICE_NAME: cygserver
         TYPE               : 10  WIN32_OWN_PROCESS
         START_TYPE         : 2   AUTO_START  (DELAYED)
         ERROR_CONTROL      : 1   NORMAL
         BINARY_PATH_NAME   : C:\cygwin64\bin\cygrunsrv.exe
         LOAD_ORDER_GROUP   :
         TAG                : 0
         DISPLAY_NAME       : CYGWIN cygserver
         DEPENDENCIES       :
         SERVICE_START_NAME : LocalSystem

 From an elevated prompt (run as Admin):

$ sc config cygserver binPath= $(cygpath -w $(which cygrunsrv))

or the Windows equivalent from an elevated cmd prompt:

> sc config cygserver binPath= F:\cygwin64\bin\cygrunsrv.exe

IIRC the space after the = is required.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
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