delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/03/15/00:13:26

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:message-id:in-reply-to:references
:subject:mime-version:content-type:content-transfer-encoding; q=
dns; s=default; b=HSDP3lB5547orxpohR0OSvxQ6OUJbI1uOGOxkgYTscF8aW
xqgz6BTab+f1ITxQ4/Z/8sulDVxm9tUrAxx+gQFAcbILsaUMEBExYeO9R50YvPSE
3lXRau6EuX+9VREkpZ7sc1BxRWAcXGZV+hBLiZa9C6UakbVMirAk7WZukmj28=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:message-id:in-reply-to:references
:subject:mime-version:content-type:content-transfer-encoding; s=
default; bh=ubu6bc0y+TE8UEIsbLPkhYX6UX4=; b=BNLwsDUG5F7Xu3zGaCZV
kXfdwRcRbh2u87o9eOjDR2I1ixLR7nwb8kPzs6WbC3EzoEFKw+rCWTTCQqremhKE
YhwnxpJ6pYXiYMaCbsmK6QQPNOeIDmnf3tvhsRrjdnDgoVLQ//PaRW+R3Hh9Jzyn
S9MG7bj0lt7b/rcY7Zpvj0w=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,SPF_HELO_PASS,SPF_SOFTFAIL,URI_HEX autolearn=no version=3.3.2 spammy=H*F:D*co.jp, services, highly
X-HELO: n5.nabble.com
Date: Wed, 14 Mar 2018 21:13:10 -0700 (MST)
From: Tatsuro MATSUOKA <tmacchant2 AT yahoo DOT co DOT jp>
To: cygwin AT cygwin DOT com
Message-ID: <1521087190047-0.post@n5.nabble.com>
In-Reply-To: <749440.93478.qm@web103109.mail.kks.yahoo.co.jp>
References: <10533 DOT 75624 DOT qm AT web103118 DOT mail DOT kks DOT yahoo DOT co DOT jp> <f520c634-8640-d1c8-17d4-2bb66633c330 AT gmail DOT com> <749440 DOT 93478 DOT qm AT web103109 DOT mail DOT kks DOT yahoo DOT co DOT jp>
Subject: Re: cygrunsrv -S cygserver on Cygwin86 does not run
MIME-Version: 1.0
X-IsSubscribed: yes

> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019