start echo -n Starting ejabberd daemon --user ejabberd --check ejabber

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
start() {
echo -n $"Starting ejabberd: "
daemon --user=ejabberd --check=ejabberd \
"erl" "-pa /usr/lib/ejabberd/ebin \
-sname ejabberd \
-s ejabberd \
-ejabberd config \\\"/etc/ejabberd/ejabberd.cfg\\\" \
log_path \\\"/var/log/ejabberd/ejabberd.log\\\" \
-sasl sasl_error_logger \\{file,\\\"/var/log/ejabberd/sasl.log\\\"\\} \
-mnesia dir \\\"/var/lib/ejabberd/spool\\\" \
-mnesia extra_db_nodes \"['ejabberd@buran']\"
-kernel inetrc \\\"/etc/ejabberd/inetrc\\\" \
-detached"