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

Cygwin running as Windows Service not showing service status


Hi All, 
I am using Cygwin on 64 bit Windows 2008 machine to host Webmin. Cygwin
version is 1.5 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. If I check in Tast Manager perl*32.exe process is also
present which is for webmin related pages.
  
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-Windows-Service-not-showing-service-status-tp27765525p27765525.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


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