This is the mail archive of the cygwin-apps 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]

32/64bit-improving cygrunsrv (was Re: Global 32/64 bit collision issues)


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


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