delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/02/15:26:24

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
MIME-Version: 1.0
Subject: Run Jabber As WindowXP/2000 Service
Date: Wed, 2 Jun 2004 12:25:54 -0700
Message-ID: <F571A97F57A2D946B229C8231805867D020A3D92@svanexcsvr01.alldir.net>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Henry Lo" <Henry DOT Lo AT teligencecom DOT com>
To: <cygwin AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i52JQNDG016813

Hi all,

I have a problem to run my JabberD as a window service.

Currently, I download JabberD-1.4.2.exe from
http://jabberd.jabberstudio.org/1.4/. I develop a flash IM client to
communicate with my JabberD server. It run as DOS Prompt and just works
fine in my development environment. 

The startup script will look like following:
C:\JabberD\jabberd.exe -H "C:\JabberD" -s "C:\JabberD\spool"

Before I move JabberD to production, I have been told I CANNOT run
JabberD in DOS Prompt. So I try to setup JabberD to run as Window
Service (XP/2000) (sorry, our company is a M$ house, I must force to use
window in production).

However, I don't have luck to setup JabberD into window server. What I
did:

PLAN A: Make use of cygrunsrv.exe from cygwin.com to convert
JabberD-1.4.2.exe to win(XP) service
1) download Cygrunsrv version 0.99-1 and 1.0-1 from
http://cygwin.matrix.com.br/release/cygrunsrv/
2) install JabberD service using following command:
cygrunsrv --install jabberd --path C:\JabberD\jabberd.exe --disp "JABBER
Server" --args "-H C:\JabberD -s C:\JabberD\spool" --shutdown
3) When I ran above command I got error "The Procedure entry point
__getreent could not be located in dynamic link library cygwin1.dll"
4) so I download the latest cygwin1.dll(cygwin1-20040530.dll) from
http://cygwin.com/snapshots/, and replace the existing one in
window\system32.
5) Redo step 2) JabberD service installed, BUT I cannot start up the
jabberD. NOTE: I cannot start JabberD in Dos Prompt also.
6) If I switch back to OLD cygwin1.dll, I can start JabberD in Dos
Prompt.
So the problem here is JabberD-1.4.2.exe need the OLD cygwin1.dll, but
the
cygrunsrv.exe(0.99-1 or 1.0-1) need the latest cygwin1-20040530.dll. 
7) So I try to use cygwin1-20040530.dll to install JabberD as win
service, then I downgrade to OLD cygwin1.dll, when I startup the JabberD
service in Window Service, I got general error from service control
"Error 1053: The Service did not respond to the start or control request
in a timely fashion"

PLAN B: make use INSTSRV.exe from M$ to install JabberD-1.4.2.exe as win
services
1) run INSTSRV JABBERD c:\jabberd\jabberd.exe
2) modified regedit path to executable to contains the parameters as
following: "c:\jabberd\jabberd.exe" -H "C:\JabberD" -s
"C:\JabberD\spool"
3) Startup the JABBERD service, I got general error from service control
"Error 1053: The Service did not respond to the start or control request
in a timely fashion"

I have no luck to run JabberD-1.4.2.exe as window service. 

Does anyone know how to do it?

Thanks in advance

Henry


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