I've just installed ejabberd with 'sudo apt-get install ejabberd' and when I run "service ejabberd restart/start" I get in the console
Job for ejabberd.service failed because the control process exited with error code. See "systemctl status ejabberd.service" and "journalctl -xe" for details.
and when I run "systemctl status ejabberd.service" I get
● ejabberd.service - LSB: Starts ejabberd jabber server
Loaded: loaded (/etc/init.d/ejabberd)
Active: failed (Result: exit-code) since Thu 2016-05-19 00:19:48 BST; 8min ago
Docs: man:systemd-sysv-generator(8)
Process: 3444 ExecStart=/etc/init.d/ejabberd start (code=exited, status=1/FAILURE)
May 19 00:18:42 ubuntu su[3520]: + ??? root:ejabberd
May 19 00:18:42 ubuntu su[3520]: pam_unix(su:session): session opened for user ejabberd by (uid=0)
May 19 00:18:42 ubuntu ejabberd[3444]: sed: can't read /etc/ejabberd/ejabberd.yml: Permission denied
May 19 00:18:42 ubuntu ejabberd[3444]: sed: can't read /etc/ejabberd/ejabberd.yml: Permission denied
May 19 00:18:42 ubuntu ejabberd[3444]: sed: can't read /etc/ejabberd/ejabberd.yml: Permission denied
May 19 00:18:42 ubuntu ejabberd[3444]: sed: can't read /etc/ejabberd/ejabberd.yml: Permission denied
May 19 00:19:48 ubuntu systemd[1]: ejabberd.service: Control process exited, code=exited status=1
May 19 00:19:48 ubuntu systemd[1]: Failed to start LSB: Starts ejabberd jabber server.
May 19 00:19:48 ubuntu systemd[1]: ejabberd.service: Unit entered failed state.
May 19 00:19:48 ubuntu systemd[1]: ejabberd.service: Failed with result 'exit-code'.
Also I've been watching the tutorials from documentation, but mostly the owner just describes things. Can I find anywhere some tutorials on how to implement that stateless configuration that he was talking about?
Edit: Solved it with 'chmod -R 750 /etc/ejabberd'. Let me know if anyone knows anything about my other question.
Another error: inet_config: file ~ts not found~n
Why is this so full of errors? I can see the a lot of people had them, but I cant find a solution every time.