[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [ooni-probe/master] Add oonid script to run ooni daemon



commit 22c0c16f8eb9b7fa5680e8f23167ded4a7082835
Author: Arturo Filastò <art@xxxxxxxxx>
Date:   Mon Jun 3 17:56:11 2013 +0200

    Add oonid script to run ooni daemon
---
 bin/oonid |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/bin/oonid b/bin/oonid
new file mode 100755
index 0000000..dd59eb9
--- /dev/null
+++ b/bin/oonid
@@ -0,0 +1,7 @@
+#!/bin/bash
+# XXX This is very Ghetto. The proper way to do this is to make a twisted
+# plugin. The plugin will then be installed and can then be run directly with
+# `twistd oonid`
+
+OONID_PATH=`python -c 'import ooni;import os;print os.path.join(os.path.dirname(os.path.abspath(ooni.__file__)), "oonid.py")'`
+twistd -y $OONID_PATH



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits