delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/01/10/10:37:31

X-Spam-Check-By: sourceware.org
Subject: cygrunsrv interactive?
MIME-Version: 1.0
Date: Wed, 10 Jan 2007 09:36:05 -0600
Message-ID: <11375BD8FE838A409E10DB32B9BFFE9B04508C@addc01.assuredata.local>
From: "Max Kipness" <max AT assuredata DOT com>
To: <cygwin AT cygwin DOT com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l0AFbKJT019257

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?

Thanks,
Max



--
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