delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/09/26/15:48:01

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=KquTVEHrcufRbTMC
b915mebASzVnfvrTuOvrUAkU14/TcDJuypsgqhOVNMHfluR29JvrXd2wMFlJyZSx
Z7h/6n3X81iw8ztSP6+9MF5oo94CpXm+BeHzEykQxHn0MtqmJgHfIvT2CCHh3R5l
RhHd3A7Soowxb94nHZwAFC4xQ+o=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=4F7EMJ84gQD4kRPJyfstbn
tflHQ=; b=AiAv4C9mV6bL43HHglm34BO0AKWw7KeM4y4GF6X/i25mdFHjCQOLbn
AYHOENUvJDbc4YiGJep60J6/ybC0YaigEsbg89cwReX5uA3XQmCTM4ooKEgN1Pa3
YANq/lDC7tlyVc6BuUjF0qng94E8/Ys+lcpXq3sOr5oL7AXTpC6ck=
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=-0.4 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.2 spammy=H*MI:sk:0df3b6e, H*f:sk:0df3b6e, H*i:sk:0df3b6e, Hx-languages-length:1328
X-HELO: resqmta-po-08v.sys.comcast.net
Subject: Re: Setting up cygrunsrv after moving installation to another drive
To: cygwin AT cygwin DOT com
References: <f042eafe-1ec7-6679-08da-015cc69c64a9 AT raelity DOT com> <0df3b6e4-3435-7e51-58ad-31b4f9a4e4ff AT SystematicSw DOT ab DOT ca>
From: Ernie Rael <err AT raelity DOT com>
Message-ID: <1bf0c23f-0f39-3f47-bb65-450ea8d20d9c@raelity.com>
Date: Mon, 26 Sep 2016 12:47:38 -0700
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0
MIME-Version: 1.0
In-Reply-To: <0df3b6e4-3435-7e51-58ad-31b4f9a4e4ff@SystematicSw.ab.ca>
X-CMAE-Envelope: MS4wfAcurBh3g5RUrcbWgj45Ba8ePocs4lI4NCmlYwUsr11lJIiyD1nWAjuaqEbRbM8/vyGCifNbulxQwoqYodC3IReFIuzTPCV5V15Idp4sMIMDXgI9zJHh zvMOUrTkYOUa5LjLDsOI9s0YmBbD64UrL2o=
X-IsSubscribed: yes

Thanks Brian, the Windows command to manipulate service configuration is 
exactly what I needed.
-ernie

On 9/25/2016 6:17 PM, Brian Inglis wrote:
> 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.
>


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