proxy65 component in jabberd2

Installing a proxy65 service for jabberd2 is quiet easy.

Download the source from http://code.google.com/p/proxy65/ and uncompress it in a directory of your choice. My stuff is under /usr/local/src

Installing is done by issuing python setup.py install, as described in the docs. Now that you installed and hopefully followed the documentation from proxy65, you need a component script for jabberd2 to start automatically, when the server starts up.

My script is not as perfect as the other scripts, but works well enough for me:

File: /etc/jabberd2/component.d/60proxy65

#!/bin/sh

set -e

NAME=proxy65
PIDFILE=/var/run/jabberd2/${NAME}.pid

case "$1" in
start)
echo -n " ${NAME}"
/bin/su jabber -s /bin/sh -c "/usr/bin/twistd \
--logfile=/var/log/jabberd2/proxy65.log \
--pidfile=${PIDFILE} \
${NAME} \
--jid=proxy65.jabber.roessner-net.com \
--secret='PASSPHRASE' \
--rhost=127.0.0.1 \
--rport=5347 \
--proxyips=78.46.253.229:7769"
;;
stop)
echo -n " ${NAME}"
kill $(cat ${PIDFILE})
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "`basename $0` called with unknown option {$1}"
exit 1
;;
esac

exit 0

The passphrase is taken from the router-users.xml file.

Hope it works for you. Any suggestions/hints are welcome 😉

2 Gedanken zu „proxy65 component in jabberd2

  1. alex rausch

    Hi Christian,

    Danke – Bin von ejabberd auf prosody umgestiegen!

    Und wen findet man dann bei proxy65 😉

    Danke das Script hat mir geholfen das Teil zu starten!

Kommentare sind geschlossen.