delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/02/18/05:49:25

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <27637072.post@talk.nabble.com>
Date: Thu, 18 Feb 2010 02:49:13 -0800 (PST)
From: ShivD <shiv DOT dixit AT ge DOT com>
To: cygwin AT cygwin DOT com
Subject: Cygwin running as NT Service not displaying status in Services Window
MIME-Version: 1.0
X-IsSubscribed: yes
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

Hi All,
 am using Cygwin on 64 bit Windows 2008 machine to host Webmin. Cygwin
version is 1.3 and Webmin version is 1.490. I am running cygwin as a windows
service.
Following is the command to create the service:
sc create "Demo Service" binPath= "C:\demo\bin\cygrunsrv.exe" start= auto.
 
When I am rebooting the box, "Demo Service" should display the status in
Service Windows but it is not doing so. But the webmin related pages are
coming up properly.
 
Following is the properties of "Demo Service" as captured from Services
Window:
Path to executable: C:\demo\bin\cygrunsrv.exe
Startup type: Automatic
 
Following is the Registry entry for "Demo Service"
ImagePath: C:\demo\bin\cygrunsrv.exe
AppPath: /etc/webmin/start
 
If I try to start the service manually then its status changes to "Started"
in Services Windows but after few refresh it goes away. 
 
Following is the entry in Event Viewer:
The description for Event ID 0 from source Demo Service cannot be found.
Either the component that raises this event is not installed on your local
computer or the installation is corrupted. You can install or repair the
component on the local computer. If the event originated on another
computer, the display information had to be saved with the event.The
following information was included with the event:  
Demo Service: PID 4168: `Demo Service' service stopped, exit status: 112
 
If I try to find out the list of service installed via cygwin using
cygrunsrv.exe -L, I am getting "Demo Service" as output.
 
What can be possible reason of this? If I am missing anything in
configuration or there is version incompatibility between cygwin and webmin?
 
I tested it on 32 bit Windows 2003 server and getting the same problem there
as well.

All help will be greatly appreciated.

Thanks
Shiv
-- 
View this message in context: http://old.nabble.com/Cygwin-running-as-NT-Service-not-displaying-status-in-Services-Window-tp27637072p27637072.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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

- Raw text -


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