diff --git a/QUICKSTART b/QUICKSTART new file mode 100644 index 0000000..b3e54a5 --- /dev/null +++ b/QUICKSTART @@ -0,0 +1,5 @@ +- Install cyclone (http://github.com/fiorix/cyclone) +- run restmq_server (or collectd or syslogd, whichever you want) +- mess with the startup script if you want it running in brackground +- use supervisord to control start/stop (or god if you are into ruby) + diff --git a/collectd_restmq_server b/collectd_restmq_server index b5e4b55..24601a3 100755 --- a/collectd_restmq_server +++ b/collectd_restmq_server @@ -22,6 +22,7 @@ PORT=8888 LISTEN=127.0.0.1 # run in foreground, for testing +export PYTHONPATH=`dirname $0`:$PYTHONPATH exec twistd -n collectd $* # run in background, for production diff --git a/restmq/web.py b/restmq/web.py index 4a0fdc3..0e2332c 100644 --- a/restmq/web.py +++ b/restmq/web.py @@ -466,7 +466,7 @@ def _disconnected(self, why, handler, queue_name): except: pass - def headersReceived(self, headers): + def headersReceived(self): # for authenticated websocket clientes, the browser must set a # cookie like this: # document.cookie = "auth=user:password" diff --git a/restmq_server b/restmq_server index 2223527..4c68d44 100755 --- a/restmq_server +++ b/restmq_server @@ -25,6 +25,7 @@ SCRIPT_FOLDER=$(readlink -f $0) SCRIPT_FOLDER=$(dirname $SCRIPT_FOLDER) # run in foreground, for testing +export PYTHONPATH=`dirname $0`:$PYTHONPATH cd $SCRIPT_FOLDER; exec twistd -n restmq $* # run in background, for production diff --git a/syslogd_restmq_server b/syslogd_restmq_server index 98057d1..51cd517 100755 --- a/syslogd_restmq_server +++ b/syslogd_restmq_server @@ -20,9 +20,10 @@ REDIS_POOL=10 # server port, and interface to listen on PORT=25000 #LISTEN=127.0.0.1 -LISTEN=10.0.1.4 +LISTEN=192.168.0.179 # run in foreground, for testing +export PYTHONPATH=`dirname $0`:$PYTHONPATH exec twistd --pidfile=$PIDFILE --logfile=$LOGFILE -n syslogd $* --listen=$LISTEN # run in background, for production