ejabberd - Comments for "ejabberd 2.1.8 will start using ejabberdctl live but not via init" https://www.ejabberd.im/node/4884 en benm wrote: cp ejabberd.init https://www.ejabberd.im/node/4884#comment-57704 <div class="quote-msg"> <div class="quote-author"><em>benm</em> wrote:</div> <p>cp ejabberd.init to /etc/init.d<br /> chmod +x<br /> add ejabberd user (what should the home dir be?)<br /> /etc/init.d/ejabberd start</p> <p>Says starting for a while and then returns to a prompt. No error or anything but I cannot login.</p> <p>it does half of the start up but does not complete? </p></div> <p>The Guide says this:<br /> "Create a system user called ejabberd; it will be used by the script to start the server"</p> <p>ejabberd.init starts the ejabberd program with the 'ejabberd' system user. But that user can't write to the database/ or logs/ dirs!</p> <p>The solution is:<br /> chown --recursive ejabberd:ejabberd database/<br /> chown --recursive ejabberd:ejabberd logs/</p> <p>For that reason, the Guide should say this:<br /> "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."</p> <div class="quote-msg"> <div class="quote-author"><em>benm</em> wrote:</div> <p>add ejabberd user (what should the home dir be?) </p></div> <p>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/.</p> <p>Please tell me your results, so I improve the explanation in the Guide accordingly.</p> Tue, 09 Aug 2011 19:34:52 +0000 mfoss comment 57704 at https://www.ejabberd.im