Execute ejabbed in background

Hello.

1) Does anyone know how to start the ejabberd server in a way like the apache, postgresql, network, etc... I mean, with a command line like 'rcapache start', 'rcpostgresql restart', 'rcnetwork stop', etc.

2) Can the server run quiet? I mean, run it without seeing the log window of ERL.

Thanks.

1) see ejabberdctl if you wan

1) see ejabberdctl if you want an example for an init script, I suggest to look at the script in the Debian ejabberd package (if you don't have Debian, search on Google for "Debian ejabberd", download the rpm, unzip it, unzip the data file, then you find in ./etc/init.d/ an init script named "ejabberd" :-)

2) yes, with the "-detached" option. See also that Debian script, http://www.ejabberd.im/node/5 and http://www.ejabberd.im/files/doc/guide.html#htoc10

--
sander

execution script, daemon (quiet) mode

  • Some distros like Debian include such a script with ejabberd. If you got ejabberd official source package, there's included an example script: examples/mtr/ejabberd . Modify it for your needs.
  • To start ejabberd as a daemon (quiet mode), start the Erlang node with the option: -detached

Syndicate content