You are not logged in.

#1 2014-02-16 18:02:56

publicus
Member
Registered: 2014-01-01
Posts: 129

[RESOLVED] Question about setting up ejabberd.

Hello,

I've been following this tutorial about setting up an ejabberd server:
https://www.youtube.com/watch?v=nujlwxnYtBg

I've hit a stumbling block, because after installing ejabberd from pacman... I have no idea where ejaberd.cfg is located smile .

Also, after poking around /usr/bin, I found a file called ejabberdctl.  Is this to make ejabberd into a service?  If so, how do I do that?

Last edited by publicus (2014-02-16 18:38:53)

Offline

#2 2014-02-16 18:16:35

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [RESOLVED] Question about setting up ejabberd.

I only see /etc/ejabberd/ejabberdctl.cfg.

$ sudo ejabberdctl
Failed RPC connection to the node ejabberd@localhost: nodedown

Commands to start an ejabberd node:
  start  Start an ejabberd node in server mode
  debug  Attach an interactive Erlang shell to a running ejabberd node
  live   Start an ejabberd node in live (interactive) mode

Optional parameters when starting an ejabberd node:
  --config-dir dir   Config ejabberd:    /etc/ejabberd
  --config file      Config ejabberd:    /etc/ejabberd/ejabberd.yml
  --ctl-config file  Config ejabberdctl: /etc/ejabberd/ejabberdctl.cfg
  --logs dir         Directory for logs: /var/log/ejabberd
  --spool dir        Database spool dir: /var/lib/ejabberd
  --node nodename    ejabberd node name: ejabberd@localhost

Offline

#3 2014-02-16 18:38:30

publicus
Member
Registered: 2014-01-01
Posts: 129

Re: [RESOLVED] Question about setting up ejabberd.

karol wrote:

I only see /etc/ejabberd/ejabberdctl.cfg.

$ sudo ejabberdctl
Failed RPC connection to the node ejabberd@localhost: nodedown

Commands to start an ejabberd node:
  start  Start an ejabberd node in server mode
  debug  Attach an interactive Erlang shell to a running ejabberd node
  live   Start an ejabberd node in live (interactive) mode

Optional parameters when starting an ejabberd node:
  --config-dir dir   Config ejabberd:    /etc/ejabberd
  --config file      Config ejabberd:    /etc/ejabberd/ejabberd.yml
  --ctl-config file  Config ejabberdctl: /etc/ejabberd/ejabberdctl.cfg
  --logs dir         Directory for logs: /var/log/ejabberd
  --spool dir        Database spool dir: /var/lib/ejabberd
  --node nodename    ejabberd node name: ejabberd@localhost

Thanks.

Also, I just found out that ejabberdctl is where I start ejabberd and get status from.

Offline

#4 2014-02-16 18:41:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [RESOLVED] Question about setting up ejabberd.

publicus wrote:

I just found out that ejabberdctl is where I start ejabberd and get status from.

This is how you manage daemons under systemd, that's how the systemd utilities like localectl work too.
https://projects.archlinux.org/svntogit … b58b41899d

Offline

Board footer

Powered by FluxBB