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]

Run Jabber As WindowXP/2000 Service


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/


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