aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorArturo FilastoĢ€ <hellais@torproject.org>2011-08-23 01:35:13 +0200
committerArturo FilastoĢ€ <hellais@torproject.org>2011-08-23 01:35:13 +0200
commit4c06ca7f2d0855f8aefa352a74fbad5103906159 (patch)
treefc028e162f078a55c190a3efe80bc191f2fb1124 /packages
parent2e645039c2ea7a7e0684e46799db2a901a5d3cae (diff)
downloadtorouter-4c06ca7f2d0855f8aefa352a74fbad5103906159.tar.gz
torouter-4c06ca7f2d0855f8aefa352a74fbad5103906159.zip
Make it start a daemon if invoked with no arguments
Diffstat (limited to 'packages')
-rw-r--r--packages/torouter-web/src/runui.py6
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()