Start eJabberd as Service

Hello everyone, I installed eJabberd server version 2.2 on Fedora Core 7.5 OS. The installation was successful and I am able to start and stop it manually.

Now, may I know the procedure for starting eJabberd as service at boot time or as a background daemon.

Actually, I tried the following steps in running eJabberd as service, but failed.

1) Firstly, I copied the ejabberd.init file from bin folder of eJbberd installed package to /etc/rc.d/init.d

2) Secondly at the command line I issued the following command
./etc/rc.d/init.d/ejabberd.init start
but it did not start as service

3) I tried looking at the ejabberd service using netstat command, but nothing is displayed.

kindly help me in this regard. Also please let me if there are any other ways of starting eJbberd as service or as background daemon

Thanks in advance.

Aditya Subrahmanyam.Y

Looking at that script, I see

Looking at that script, I see those lines:

USER=ejabberd

test -d "$DIR" || exit 0
grep ^"$USER": /etc/passwd >/dev/null || exit 0

It seems ejabberd.init expects that you have a system user called "ejabberd". Otherwise, the script exits without even showing the help. And you must run the script as root.

Why script just not come good programmed ?

I having the same problem ..
adduser ejabberd
chmod -Rv /opt/ejabberd-2.1.4/

ejabberdctl start work great ...

BUT ejabberd.init never start the service ...

some suggestion ?

Permissions

Also, if you installed on /opt/ then you need to change the owner of those files like chown -Rv ejabberd:ejabberd /opt/ejabber*

Syndicate content