From 4a58375c659bdefb5096911a652493cd629e2ed6 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Wed, 11 Mar 2015 22:41:05 +0100 Subject: [PATCH] Enable sync output to stdout (useful for sync log watching) --- bin/hued | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/hued b/bin/hued index 4451db5..ff6c07b 100755 --- a/bin/hued +++ b/bin/hued @@ -61,6 +61,9 @@ engine = Hued::Engine.new Signal.trap("INT") { EM.stop } Signal.trap("TERM") { EM.stop } +# Write sync to stdout +$stdout.sync = true + # Trigger rule execution and light status refreshing periodically EM.run do EM.add_periodic_timer(10) { engine.reload; engine.execute }