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

[tor-commits] [torouter/master] Make it start a daemon if invoked with no arguments



commit 4c06ca7f2d0855f8aefa352a74fbad5103906159
Author: Arturo FilastoÌ? <hellais@xxxxxxxxxxxxxx>
Date:   Tue Aug 23 01:35:13 2011 +0200

    Make it start a daemon if invoked with no arguments
---
 packages/torouter-web/src/runui.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/packages/torouter-web/src/runui.py b/packages/torouter-web/src/runui.py
index 488c483..4353475 100644
--- a/packages/torouter-web/src/runui.py
+++ b/packages/torouter-web/src/runui.py
@@ -55,7 +55,7 @@ if __name__ == "__main__":
       sys.exit(2)
     sys.exit(0)
   else:
-    print "usage: %s start|stop|restart" % sys.argv[0]
-    sys.exit(2)
-
+    sys.argv[1] = '8080'
+    print "starting daemon..."
+    service.start()
 

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