|
|
@ -1140,7 +1140,7 @@ class Daemon: |
|
|
|
self.shutdown_cb() |
|
|
|
self.shutdown_cb() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__": |
|
|
|
def main(): # pragma: no cover |
|
|
|
usage = [ |
|
|
|
usage = [ |
|
|
|
sys.argv[0] + " [option] (--start|--stop) <form_definition.json>", |
|
|
|
sys.argv[0] + " [option] (--start|--stop) <form_definition.json>", |
|
|
|
" " + sys.argv[0] + " --generate-pw", |
|
|
|
" " + sys.argv[0] + " --generate-pw", |
|
|
@ -1208,3 +1208,6 @@ if __name__ == "__main__": |
|
|
|
except Exception, e: |
|
|
|
except Exception, e: |
|
|
|
log.exception(e) |
|
|
|
log.exception(e) |
|
|
|
raise |
|
|
|
raise |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__": # pragma: no cover |
|
|
|
|
|
|
|
main() |
|
|
|