I am running Ubuntu Natty with the ejabberd installed from the process-one latest 2.1.8 installer.
It runs fine by executing ejabberctl live but not when following the process to set it up with the init script as below:
cp ejabberd.init to /etc/init.d
chmod +x
add ejabberd user (what should the home dir be?)
/etc/init.d/ejabberd start
Says starting for a while and then returns to a prompt. No error or anything but I cannot login. And then I get an error when trying to run ejabberctl live and I have to restart the machine in order to be able to run it using live again as if it does half of the start up but does not complete?
Does anyone have any ideas?
benm wrote: cp ejabberd.init
cp ejabberd.init to /etc/init.d
chmod +x
add ejabberd user (what should the home dir be?)
/etc/init.d/ejabberd start
Says starting for a while and then returns to a prompt. No error or anything but I cannot login.
it does half of the start up but does not complete?
The Guide says this:
"Create a system user called ejabberd; it will be used by the script to start the server"
ejabberd.init starts the ejabberd program with the 'ejabberd' system user. But that user can't write to the database/ or logs/ dirs!
The solution is:
chown --recursive ejabberd:ejabberd database/
chown --recursive ejabberd:ejabberd logs/
For that reason, the Guide should say this:
"Create a system user called ejabberd, give it write access to the directories database/ and logs/, and set as home; it will be used by the script to start the server."
add ejabberd user (what should the home dir be?)
Maybe you don't need to specify any home. Try not setting any home. If that doesn't help, set as home the dir logs/.
Please tell me your results, so I improve the explanation in the Guide accordingly.