Hi, all
I've been building an ejabberd RPM for Red Hat today and I've managed to build both erlang-otp and ejabberd successfully. I also crafted an init script for ejabberd (a wrapper to ejabbberdctl). I've been trying to debug an issue with "starting" ejabberd and finally found the culprit.
I compared the ejabberdctl script against my own, and I noticed it was passing the "start" command to ejabberdctl. When building from source (v0.9.8, v1.0.0, subversion rev 501), ejabberd_ctl.erl is missing the "start" command.
Is there a special revision in the svn repository that has the "start" command? I'm assuming the linux binary made available on the site was built from a source that has it. :-)
Thanks!
Re: ejabberd_ctl from source is missing "start" option
I've been building an ejabberd RPM for Red Hat today and I've managed to build both erlang-otp and ejabberd successfully.
Nice, will it end up in the (official or an unofficial) Red Had repository?
Is there a special revision in the svn repository that has the "start" command? I'm assuming the linux binary made available on the site was built from a source that has it. :-)
The ejabberdctl script connects to a module in ejabberd. Therefore it is necessary that ejabberd is already loaded. However, I made apatch (that will not work on Windows I guess) that enhances ejabberdctl . Just download all the files and drop them in the src directory, also apply the patch. Then you can reconfigure ejabberd and compile it.
Got it working!
Hi, sander
Thanks much for the ejabberdctl patch! :-) Your version works wonders. I've built the rpm and am thoroughly testing it now. I'm still thinking of whether to write a script to help configure ejabberd, but the rpm looks to be good. I'll ask the RH rpm gurus how to submit an rpm for ejabberd. :-)
One thing, though -- the "reload" command seems to do print_usage on me.
Re: Got it working!
One thing, though -- the "reload" command seems to do print_usage on me.
That's because the reload command is not yet implemented, you can remove the help text for that in ejabberdctl.in. Normally support for reload will be in next ejabberd version.
Thanks!
Excellent! I'll clean-up the rpm and will have it hosted and reviewed by others to see if it works for them. Thanks for the help. :-)
rpm
Please post a link as soon as you have it available