public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Setting up cygrunsrv after moving installation to another drive
@ 2016-09-26  1:17 Ernie Rael
  2016-09-26  4:30 ` Brian Inglis
  0 siblings, 1 reply; 3+ messages in thread
From: Ernie Rael @ 2016-09-26  1:17 UTC (permalink / raw)
  To: cygwin

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?

-ernie


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Setting up cygrunsrv after moving installation to another drive
  2016-09-26  1:17 Setting up cygrunsrv after moving installation to another drive Ernie Rael
@ 2016-09-26  4:30 ` Brian Inglis
  2016-09-26 20:09   ` Ernie Rael
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Inglis @ 2016-09-26  4:30 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Setting up cygrunsrv after moving installation to another drive
  2016-09-26  4:30 ` Brian Inglis
@ 2016-09-26 20:09   ` Ernie Rael
  0 siblings, 0 replies; 3+ messages in thread
From: Ernie Rael @ 2016-09-26 20:09 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-09-26 19:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-26  1:17 Setting up cygrunsrv after moving installation to another drive Ernie Rael
2016-09-26  4:30 ` Brian Inglis
2016-09-26 20:09   ` Ernie Rael

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