This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
32/64bit-improving cygrunsrv (was Re: Global 32/64 bit collision issues)
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin-apps at cygwin dot com
- Date: Wed, 29 May 2013 14:59:33 +0200
- Subject: 32/64bit-improving cygrunsrv (was Re: Global 32/64 bit collision issues)
- References: <20130523084435 dot GB13513 at calimero dot vinschen dot de> <51A2C50A dot 5090405 at users dot sourceforge dot net> <20130527100409 dot GD2483 at calimero dot vinschen dot de> <BLU173-W111D5EE8B1171370E465CEB5960 at phx dot gbl> <20130527143315 dot GA28463 at calimero dot vinschen dot de> <51A41821 dot 7050805 at gmx dot de> <20130528102627 dot GD5264 at calimero dot vinschen dot de>
- Reply-to: cygwin-apps at cygwin dot com
For a start, I just created a change to cygrunsrv.
Right now, when using the -L or -Q option, cygrunsrv prints
undiscriminately all services of all installations the same way:
$ cygrunsrv -L
cygserver
sshd
$ cygrunsrv -Q sshd -V
Service : sshd
Display name : CYGWIN sshd
Current State : Stopped
Command : /usr/sbin/sshd -D
[...]
With my change, it also checks if the service is running *this*
cygrunsrv, or a cygrunsrv from another installation:
$ cygrunsrv -L
cygserver
(sshd)
The service name is put into parens, if it's started by another cygrunsrv.
In case of the -V output, it's a bit more verbose:
$ cygrunsrv -Q sshd -V
Service : sshd (Installation path: C:\cygwin64)
Display name : CYGWIN sshd
Current State : Stopped
Command : /usr/sbin/sshd -D
[...]
I'm not quite happy about the "Installation path" text, though. It's
pretty clear to me what I mean, but is it clear enough for other users?
Maybe the -V output should always contain two more lines, installation
path and platform of the cygrunsrv starting the service, kind of like this:
$ cygrunsrv -Q sshd -V
Service : sshd
Installation path: : C:\cygwin64
Platform : x86_64
Display name : CYGWIN sshd
[...]
or even with an extra "not me", if it's another cygrunsrv and/or another
platform:
$ cygrunsrv -Q sshd -V
Service : sshd
Installation path: : C:\cygwin64 (not me!)
Platform : x86_64 (not me!)
Display name : CYGWIN sshd
[...]
What do you think?
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat