Daniel Zelisko wrote:
I fixed it for ubuntu 8.10, hopefuly it may be useful for you.
[...]
start()
{
cd /var/lib/ejabberd
su $EJABBERDUSER -c "$EJABBERD -noshell -detached"
echo `pidof epmd` > $PIDFILE
}
[...]
epmd is an "Erlang Port Mapping Daemon" which provides clustering for
Erlang nodes across a network. It's started once per physical host and
is shared by any number of local erlang nodes running on the same host.
In other words, saving the PID of the epmd process is pointless.
What worth saving -- is the PID of a beam or beam.smp process which is
an actual instance of the "Erlang emulator" (odd techincal name for an
Erlang virtual machine).
The PID we need is what os:getpid/0 Erlang/OTP function returns, so it
might turn out we have to somehow patch the ejabberd startup code to
parse a special command-line switch and write a PID file according to
the file name passed using that switch.
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org