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: cygrunsrv -S cygserver on Cygwin86 does not run
Date: Thu, 15 Mar 2018 07:11:00 -0000	[thread overview]
Message-ID: <2bdf7fc2-9def-e3ad-0628-83d3693f2082@SystematicSw.ab.ca> (raw)
In-Reply-To: <1521087190047-0.post@n5.nabble.com>

On 2018-03-14 22:13, Tatsuro MATSUOKA wrote:
> On 2018/3/14, Wed 15:28 Marco Atzeri wrote: 
>> Is it same machine ? 
>> If so the `cygrunsrv -S cygserver` is starting in both case the 64bit
>> version 
>> and you can not see it as process in 32bit. 
>>
>> The problem is due that the services "cygserver" have a unique name 
>> and the last architecture to install it overwrites any precedent 
>> version. 
>>
>> One workaround is to have two different services for the two 
>> architectures. 
>>
>> The declaration is located in the registry on 
>>
>> HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\cygserver 
>> HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\services\cygserver 
>> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\cygserver 
>>
>> You can rename it as 
>>
>> HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\cygserver64 
>>
>> I suggest to rename also the "DisplayName" 
>>
>> Than install cygserver on 32bit 
>> To avoid confusion, I than renamed it as 
>>
>> HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\cygserver32 

>> I can execute cygserver for 32 and 64 bit simultaneously. 
>> Tatsuro
> 
> Note:
> 
> At execute Cygwin setup, kiling all cygwin process is highly recommended
> becase setpup execute autorebase.
> 
> I made two batch files.
> **********************************
> Kill all Cygwin process
> 
> kill-9-1_32_64.bat
> @echo off
> C:\cygwin\bin\cygstart --action=runas /bin/kill -9 -1
> C:\cygwin64\bin\cygstart --action=runas /bin/kill -9 -1
> 
> ***********************************
> Restart Cygsever
> 
> Cygsever32_64.bat
> @echo off
> C:\cygwin\bin\cygstart --action=runas /bin/cygrunsrv -S cygserver32
> C:\cygwin64\bin\cygstart --action=runas /bin/cygrunsrv -S cygserver64

You can also install your own /etc/postinstall/zp_zzz_services.dash script to
restart services in each install after all other postinstall scripts finish.

-- 
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:[~2018-03-15  5:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-14  6:28 Tatsuro MATSUOKA
2018-03-14  8:26 ` Marco Atzeri
2018-03-14  9:03   ` Tatsuro MATSUOKA
2018-03-15  5:41     ` Tatsuro MATSUOKA
2018-03-15  7:11       ` Brian Inglis [this message]
2018-03-15 23:32         ` Tatsuro MATSUOKA
2018-03-15 18:17       ` Achim Gratz
2018-03-16  7:11         ` Tatsuro MATSUOKA
2018-03-16 20:47           ` Achim Gratz

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=2bdf7fc2-9def-e3ad-0628-83d3693f2082@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).