delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/08/14/11:36:00

X-Spam-Check-By: sourceware.org
Date: Tue, 14 Aug 2007 11:34:38 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Rob Siklos <rrr AT siklos DOT ca>
cc: cygwin AT cygwin DOT com
Subject: Re: running a GUI app as a service with cygrunsrv
In-Reply-To: <001f01c7de86$39414030$6901a8c0@Clarifica.local>
Message-ID: <Pine.GSO.4.63.0708141132450.17254@access1.cims.nyu.edu>
References: <001f01c7de86$39414030$6901a8c0 AT Clarifica DOT local>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Tue, 14 Aug 2007, Rob Siklos wrote:

> Hi,
>
> I've searched google, but couldn't readily find an answer to this.
>
> What happens if I have a GUI application that I install as a service
> (and set the startup type to Auto) with cygrunsrv.  Is this supported?
>
> I'm hoping that the window info will just be thrown away, but the app
> will still run fine.

Unlikely.  The app probably expects to be able to at least pop up a
window...

> My problem is that I am trying to automate a connection to a VPN using
> the Cisco VPN Client.  The client which I must use is a GUI application,
> but if the system reboots for some reason, I want the client to start
> even if nobody is there to log in.

I think you want the --interactive/-i flag to cygrunsrv.  Note that this
requires you to run the service as SYSTEM, and, I believe, is no longer
supported on Win2k3 and Vista...
HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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