public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* cygrunsrv -S cygserver on Cygwin86 does not run
@ 2018-03-14  6:28 Tatsuro MATSUOKA
  2018-03-14  8:26 ` Marco Atzeri
  0 siblings, 1 reply; 9+ messages in thread
From: Tatsuro MATSUOKA @ 2018-03-14  6:28 UTC (permalink / raw)
  To: cygwin

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

--
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] 9+ messages in thread

* Re: cygrunsrv -S cygserver on Cygwin86 does not run
  2018-03-14  6:28 cygrunsrv -S cygserver on Cygwin86 does not run Tatsuro MATSUOKA
@ 2018-03-14  8:26 ` Marco Atzeri
  2018-03-14  9:03   ` Tatsuro MATSUOKA
  0 siblings, 1 reply; 9+ messages in thread
From: Marco Atzeri @ 2018-03-14  8:26 UTC (permalink / raw)
  To: cygwin

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



--
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] 9+ messages in thread

* Re: cygrunsrv -S cygserver on Cygwin86 does not run
  2018-03-14  8:26 ` Marco Atzeri
@ 2018-03-14  9:03   ` Tatsuro MATSUOKA
  2018-03-15  5:41     ` Tatsuro MATSUOKA
  0 siblings, 1 reply; 9+ messages in thread
From: Tatsuro MATSUOKA @ 2018-03-14  9:03 UTC (permalink / raw)
  To: Marco Atzeri, cygwin

> 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


--
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] 9+ messages in thread

* Re: cygrunsrv -S cygserver on Cygwin86 does not run
  2018-03-14  9:03   ` Tatsuro MATSUOKA
@ 2018-03-15  5:41     ` Tatsuro MATSUOKA
  2018-03-15  7:11       ` Brian Inglis
  2018-03-15 18:17       ` Achim Gratz
  0 siblings, 2 replies; 9+ messages in thread
From: Tatsuro MATSUOKA @ 2018-03-15  5:41 UTC (permalink / raw)
  To: cygwin

> 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

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

* Re: cygrunsrv -S cygserver on Cygwin86 does not run
  2018-03-15  5:41     ` Tatsuro MATSUOKA
@ 2018-03-15  7:11       ` Brian Inglis
  2018-03-15 23:32         ` Tatsuro MATSUOKA
  2018-03-15 18:17       ` Achim Gratz
  1 sibling, 1 reply; 9+ messages in thread
From: Brian Inglis @ 2018-03-15  7:11 UTC (permalink / raw)
  To: cygwin

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

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

* Re: cygrunsrv -S cygserver on Cygwin86 does not run
  2018-03-15  5:41     ` Tatsuro MATSUOKA
  2018-03-15  7:11       ` Brian Inglis
@ 2018-03-15 18:17       ` Achim Gratz
  2018-03-16  7:11         ` Tatsuro MATSUOKA
  1 sibling, 1 reply; 9+ messages in thread
From: Achim Gratz @ 2018-03-15 18:17 UTC (permalink / raw)
  To: cygwin

Tatsuro MATSUOKA writes:
> At execute Cygwin setup, kiling all cygwin process is highly recommended
> becase setpup execute autorebase.

Well, it's mandatory actually.

> 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

Myself, I use 'pkill .' (from the procps package), but if you run any
daemons that keep state you better properly stop their services instead
of killing them (NET STOP and NET START from CMD, no need to fire up
Cygwin for this).  AT least you should send them A HUP ro TERM first,
then wait a few seconds before sending KILL.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra

--
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] 9+ messages in thread

* Re: cygrunsrv -S cygserver on Cygwin86 does not run
  2018-03-15  7:11       ` Brian Inglis
@ 2018-03-15 23:32         ` Tatsuro MATSUOKA
  0 siblings, 0 replies; 9+ messages in thread
From: Tatsuro MATSUOKA @ 2018-03-15 23:32 UTC (permalink / raw)
  To: Brian.Inglis, cygwin

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

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

* Re: cygrunsrv -S cygserver on Cygwin86 does not run
  2018-03-15 18:17       ` Achim Gratz
@ 2018-03-16  7:11         ` Tatsuro MATSUOKA
  2018-03-16 20:47           ` Achim Gratz
  0 siblings, 1 reply; 9+ messages in thread
From: Tatsuro MATSUOKA @ 2018-03-16  7:11 UTC (permalink / raw)
  To: Achim Gratz, cygwin

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

> From: Achim Gratz 
> To: cygwin
> Cc: 
> Date: 2018/3/16, Fri 03:06
> Subject: Re: cygrunsrv -S cygserver on Cygwin86 does not run
> 
>T atsuro MATSUOKA writes:
>>  At execute Cygwin setup, kiling all cygwin process is highly recommended
>>  becase setpup execute autorebase.
> 
> Well, it's mandatory actually.
> 
>>  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
> 
> Myself, I use 'pkill .' (from the procps package), but if you run any
> daemons that keep state you better properly stop their services instead
> of killing them (NET STOP and NET START from CMD, no need to fire up
> Cygwin for this).  AT least you should send them A HUP ro TERM first,
> then wait a few seconds before sending KILL.
> 
> 
> Regards,
> Achim.
Thank you for your advise.
According to the page,
http://cygwin.wikia.com/wiki/Rebaseall
$ cygrunsrv -E <servicename>
The above seem to be propper way to stop sevice process.
If one kill all sevise, filter script should be described.
However, I only execute only two services, I use "cygrunsrv -E <servicename>" twice 
before kill -9 -1
at the moment
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

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

* Re: cygrunsrv -S cygserver on Cygwin86 does not run
  2018-03-16  7:11         ` Tatsuro MATSUOKA
@ 2018-03-16 20:47           ` Achim Gratz
  0 siblings, 0 replies; 9+ messages in thread
From: Achim Gratz @ 2018-03-16 20:47 UTC (permalink / raw)
  To: cygwin

Tatsuro MATSUOKA writes:
> http://cygwin.wikia.com/wiki/Rebaseall
> $ cygrunsrv -E <servicename>
> The above seem to be propper way to stop sevice process.

…if you need to do it from within Cygwin.  If you're doing it from a CMD
or BAT file it's easier and slightly more efficient to use the Windows
tools.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada

--
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] 9+ messages in thread

end of thread, other threads:[~2018-03-16 19:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-14  6:28 cygrunsrv -S cygserver on Cygwin86 does not run 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
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

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