cygrunsrv -S cygserver on Cygwin86 does not run

Tatsuro MATSUOKA tmacchant2@yahoo.co.jp
Thu Mar 15 23:32:00 GMT 2018


----- Original Message -----

> From: Brian Inglis 
> To: cygwin
> Cc: 
> Date: 2018/3/15, Thu 14:46
> Subject: Re: cygrunsrv -S cygserver on Cygwin86 does not run
> 
> 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
Thank you for your advise.
I will try later.
Tatsuro


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



More information about the Cygwin mailing list