comparison py/tempserver.py @ 157:6d799bee3508

reload config on SIGHUP
author Matt Johnston <matt@ucc.asn.au>
date Thu, 03 Jan 2013 20:12:07 +0800
parents d03157c7ad60
children 256505f98c4d
comparison
equal deleted inserted replaced
156:bed65c321b46 157:6d799bee3508
45 self.fridge.start() 45 self.fridge.start()
46 self.sensors.start() 46 self.sensors.start()
47 47
48 # won't return. 48 # won't return.
49 while True: 49 while True:
50 gevent.sleep(60) 50 try:
51 gevent.sleep(60)
52 except KeyboardInterrupt:
53 break
51 54
52 def now(self): 55 def now(self):
53 return utils.monotonic_time() 56 return utils.monotonic_time()
54 57
55 def set_sensors(self, sensors): 58 def set_sensors(self, sensors):