|
@@ -25,6 +25,12 @@ case "$1" in
|
|
mkrundir || exit 1
|
|
mkrundir || exit 1
|
|
echo -n "Starting ejabberd... "
|
|
echo -n "Starting ejabberd... "
|
|
ctl start --spool "$SPOOLDIR"
|
|
ctl start --spool "$SPOOLDIR"
|
|
|
|
+ # Wait until ejabberd is up and running.
|
|
|
|
+ if ctl started; then
|
|
|
|
+ echo "done"
|
|
|
|
+ else
|
|
|
|
+ echo "failed"
|
|
|
|
+ fi
|
|
;;
|
|
;;
|
|
stop)
|
|
stop)
|
|
echo -n "Stopping ejabberd... "
|
|
echo -n "Stopping ejabberd... "
|