ejabberd - Comments for "How to debug regular restarts" https://www.ejabberd.im/forum/28669/how-debug-regular-restarts en You're right, systemd is https://www.ejabberd.im/forum/28669/how-debug-regular-restarts#comment-67289 <p>You're right, systemd is terminating it because it thinks (wrongly) that it has failed to start:</p> <div class="codeblock"><code>Jan 30 12:30:15 hostname systemd[1]: Unit ejabberd.service entered failed state.<br />Jan 30 12:31:51 hostname systemd[1]: ejabberd.service start operation timed out. Terminating.</code></div> <p>Thanks, looks like I just need to get systemd into line.</p> Mon, 30 Jan 2017 20:39:54 +0000 terminus comment 67289 at https://www.ejabberd.im You should investigate if the https://www.ejabberd.im/forum/28669/how-debug-regular-restarts#comment-67283 <p>You should investigate if the server starts for some internal reason, or influenced externally (for example some ejabberdctl or system call to restart). I mean, maybe your system has a script that checks if ejabberd works "correctly", it detects that ejabberd doesn't reply, and then restarts it.</p> <p>Does it happen at certain time of day? Or when clients do something particular?</p> <p>Disable the client port 5222, so your users don't connect, does it happen? Or disable port 5269 for s2s connections, does it happen? Or check if there is some cron task for checking ejabberd is running...</p> <p>And if you didn't yet, set loglevel 5 so you get debug log lines</p> Fri, 27 Jan 2017 12:26:00 +0000 badlop comment 67283 at https://www.ejabberd.im