Hi,
I'm trying to make ejabberd to run as a windows service by using erlsrv.exe.
Service is created and can be started, it runs, but I've no access to web admin page and no ejabberd server is launched.
No any log files exist.
Here is what I'm using for creating service:
erlsrv add ejabberd -env ERL_MAX_PORT=32000 -env EJABBERD_MSGS_PATH="../lib/ejabberd-1.1.2/priv/msgs/" -env EJABBERD_CONFIG_PATH="../conf/ejabberd.cfg" -env EJABBERD_SO_PATH="../lib/ejabberd-1.1.2/priv/lib/windows/" -env EJABBERD_LOG_PATH="../logs/ejabberd.log" -w "E:\Program Files\ejabberd-1.1.2\bin" -sname ejabberd@localhost -args "-kernel inetrc \"../conf/inetrc.win\" -mnesia dir \"../database/ejabberd\" -sasl sasl_error_logger {file,\"../logs/sasl.log\"} -setcookie ejabberd -s ejabberd"
Any ideas how to make it working?
Thanks,
Peter
Solved
I've missed ' chars on strings, so working version is:
erlsrv add ejabberd -env ERL_MAX_PORT=32000 -env EJABBERD_MSGS_PATH="../lib/ejabberd-1.1.2/priv/msgs/" -env EJABBERD_CONFIG_PATH="../conf/ejabberd.cfg" -env EJABBERD_SO_PATH="../lib/ejabberd-1.1.2/priv/lib/windows/" -env EJABBERD_LOG_PATH="../logs/ejabberd.log" -w "E:\Program Files\ejabberd-1.1.2\bin" -sname ejabberd@localhost -args "-kernel inetrc '\"../conf/inetrc.win\"' -mnesia dir '\"../database/ejabberd\"' -sasl sasl_error_logger {file,'\"../logs/sasl.log\"'} -setcookie ejabberd -s ejabberd"
erlsrv has very usefull -debugtype parameter which helped me.
Running but not functional?
I've used this hint to make ejabberd service running, thanks! Still, I cannot connect to ejabberd (port 5222 is dead). Is there anything else that has to be done besides starting up the service?
PS: If I stop the service and run ejabberd standalone, it works ok.
Hello, Did you use the
Hello,
Did you use the Windows binary installer ?
Normally, the service should be created automatically by the installer.
--
Process-one
Mickaël Rémond
Works ok with standard installer
You are right! My mistake, sorry. I should have just started the service created by the installer.
It works both for ejabberd 1.1.2 and ejabberd 1.1.3 (tested on Windows XP Home/Pro).