Re: cygrunsrv -S cygserver on Cygwin86 does not run
- Date: Fri, 16 Mar 2018 08:45:53 +0900 (JST)
- From: Tatsuro MATSUOKA <tmacchant2@xxxxxxxxxxx>
- Subject: Re: cygrunsrv -S cygserver on Cygwin86 does not run
----- Original Message -----
> From: Achim Gratz
> To: cygwin
> 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.
>> @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.
Thank you for your advise.
According to the page,
$ 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
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple