screen support
authorvunhat_minh <vunhat_minh@dwango.co.jp>
Fri, 30 May 2014 09:12:52 +0000 (18:12 +0900)
committervunhat_minh <vunhat_minh@dwango.co.jp>
Fri, 30 May 2014 09:12:52 +0000 (18:12 +0900)
rainbowstream/rainbow.py
setup.py

index 282437b..d1a794e 100644 (file)
@@ -504,3 +504,10 @@ def fly():
     g['reset'] = True
     g['stream_pid'] = p.pid
     listen()
+
+
+def multiplexer():
+    """
+    Multiplexer
+    """
+    os.system('screen -S rainbow fly')    
index bf81013..7755cdd 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -42,6 +42,7 @@ setup(name='rainbowstream',
       entry_points="""
       # -*- Entry points: -*-
       [console_scripts]
-      rainbow=rainbowstream.rainbow:fly
+      fly=rainbowstream.rainbow:fly
+      rainbow=rainbowstream.rainbow:multiplexer
       """,
       )