Remove unused signal handler
This commit is contained in:
parent
a8366fe00f
commit
8ee47e36e3
|
@ -14,7 +14,6 @@ stateFile = 'www/garage.json'
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
signal(SIGTERM, cleanExit())
|
|
||||||
config = ConfigParser()
|
config = ConfigParser()
|
||||||
config.read('garage.cfg')
|
config.read('garage.cfg')
|
||||||
eastPin = config['garage'].getint('east-pin')
|
eastPin = config['garage'].getint('east-pin')
|
||||||
|
@ -64,12 +63,5 @@ def persistState():
|
||||||
json.dump(state, file)
|
json.dump(state, file)
|
||||||
|
|
||||||
|
|
||||||
def cleanExit():
|
|
||||||
def _exit_(signum, frame):
|
|
||||||
sys.exit(0)
|
|
||||||
|
|
||||||
return _exit_
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in New Issue