diff server/ts.py @ 371:7dec59b7eeef

cheap_daemon()
author Matt Johnston <matt@ucc.asn.au>
date Tue, 26 Jun 2012 21:36:54 +0800
parents 20f7161399a8
children c5ad12670cae
line wrap: on
line diff
--- a/server/ts.py	Tue Jun 26 21:21:51 2012 +0800
+++ b/server/ts.py	Tue Jun 26 21:36:54 2012 +0800
@@ -172,6 +172,9 @@
 def main():
     next_wake_time = 0
 
+    if '--daemon' in sys.argv:
+        utils.cheap_daemon()
+
     while True:
         sock = None
         try: