This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygrunsrv -S cygserver on Cygwin86 does not run


> From: Marco Atzeri 

> To: cygwin 
> Cc: 
> Date: 2018/3/14, Wed 15:28 
> Subject: Re: cygrunsrv -S cygserver on Cygwin86 does not run 
> 
> On 14/03/2018 01:38, Tatsuro MATSUOKA wrote: 
>>  Followingng the below 
>>  https://cygwin.com/cygwin-ug-net/using-cygserver.html
>>  Start Cygwin shell with admin right. 
>>  $ cygserver-config 
>>  and /etc/cygserver.conf is created 
>>  execute 
>>  $ cygrunsrv -S cygserver 
>>  On Cygwin86_64 
>>  $ ps -a | grep 'cyg' 
>>        5428       1    5428       5428  ?             18 08:50:18 
> /usr/bin/cygrunsrv 
>>        6152    5428    6152       9680  ?             18 08:50:18 
> /usr/sbin/cygserver 
>> 
>>  On Cygwin86 
>>  $ ps -a | grep 'cyg' 
>>    (nothing appear) 
>>  Any suggestions? 
>>  Tatsuro 
>> 
> 
> 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 
> 
> Regards 
> Marco 

> Marco 

> Thanks for your help. 

> 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



The above is customized to my enviromments. 
Please  customize to your enviromments.

Tatsuro



--
Sent from: http://cygwin.1069669.n5.nabble.com/Cygwin-list-f3.html

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]