ejabberd startup problem

I have install port net-im/ejabberd and configured it accordingly. The messaging works great between users. I have added ejabberd_enable="YES" to my /etc/rc.conf. When the system is restarted I have to manually run
Code:
service ejabberd start
and
Code:
/usr/local/sbin/ejabberdctl start
in order to start ejabberd. What is the best way to configure ejabberd on boot?


FreeBSD 9
Ejabberd 2.1.11

Thanks,
-Tim
 
Have you checked the logs? Is it actually start on boot, maybe it's failing to start because of configuration...
 
I removed the ejabberd package and install /usr/ports/net-im/openfire. It works great!
 
This is a really old thread, but the problem still exists in 11-RELEASE.
The net-im/ejabberd daemon scripts tries to start it as user ejabberd, which doesn't work for some reason. Running manually as root:
Code:
# ejabberdctl start
works. This is not a solution, of course...
 
The root cause of the problem is wrong ownership of the files in /var/spool/ejabberd/. Those files must be owned by user ejabberd.
That happens when you start/stop ejabberd as root, e.g. in my case I've done it multiple times at the beginning - playing with the configuration and testing this or that.
 
aragats

I've been struggling to get this ejabberd up and running. There's such a lack of info. Did you happen to follow a how to you can share? I'm days into this and not sure why. Not an expert here...
 
ChrisBSD , I really don't remember those one-year-old details. There were some confusing things to me too. Also, they switched to .yml format, I never had problems with the old way.
Anyway, here attached is my ejabberd.yml. Actually I didn't change much from there example. I have it configured for 2 domains, so you'll see repeating lines in a couple of places.
(I had to add .txt to upload it here)
 

Attachments

  • ejabberd.yml.txt
    2.2 KB · Views: 490
Back
Top