X-Spam-Check-By: sourceware.org Date: Wed, 10 Jan 2007 10:44:31 -0500 (EST) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: Max Kipness cc: cygwin AT cygwin DOT com Subject: Re: cygrunsrv interactive? In-Reply-To: <11375BD8FE838A409E10DB32B9BFFE9B04508C@addc01.assuredata.local> Message-ID: References: <11375BD8FE838A409E10DB32B9BFFE9B04508C AT addc01 DOT assuredata DOT local> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 Wed, 10 Jan 2007, Max Kipness wrote: > Hello, > > I've been trying to use CYGRUNSRV to run an application that runs in a > loop and basically just contacts a socket server every 15 seconds. I've > tried various options to install the service so that it can run as > SYSTEM and interactive. > > When starting the app with an appropriate user in the domain or local > computer, the service runs fine, however when running it as SYSTEM with > or without INTERACTIVE set, it fails stating that the program has > terminated unexpectedly. > > When I use another utility, RunAsSvc.exe, the same program runs just > fine as SYSTEM and INTERACTIVE. The only problem with this utility is > that even though it allows batch installation, it does not allow you to > set INTERACTIVE via batch commands, and CYGRUNSRV does. > > Why would an app run with as a user, but not as SERVICE if the app runs > a infinite While loop? > > Any tips to get this working? Yes. Start here: > Problem reports: http://cygwin.com/problems.html In particular, the output of "cygcheck -svr" (attached to your reply, as requested on the above page) would be helpful in diagnosing your problem. 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! Freedom is just another word for "nothing left to lose"... -- Janis Joplin -- 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/