public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
To: cygwin@cygwin.com
Subject: Re: Setting up cygrunsrv after moving installation to another drive
Date: Mon, 26 Sep 2016 04:30:00 -0000	[thread overview]
Message-ID: <0df3b6e4-3435-7e51-58ad-31b4f9a4e4ff@SystematicSw.ab.ca> (raw)
In-Reply-To: <f042eafe-1ec7-6679-08da-015cc69c64a9@raelity.com>

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

  reply	other threads:[~2016-09-26  1:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-26  1:17 Ernie Rael
2016-09-26  4:30 ` Brian Inglis [this message]
2016-09-26 20:09   ` Ernie Rael

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0df3b6e4-3435-7e51-58ad-31b4f9a4e4ff@SystematicSw.ab.ca \
    --to=brian.inglis@systematicsw.ab.ca \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).