@@ -0,0 +1,345 @@
+# -*- coding: utf-8 -*-%0A%0Afrom subprocess import call%0Afrom sys import exit%0A%0APROGRAM = 'hh_client'%0A%0Adef restart():%0A  return call(%5B PROGRAM, 'restart' %5D)%0A%0Adef check():%0A  return call(%5B PROGRAM, 'check' %5D)%0A%0Aif __name__ == '__main__':%0A  for command in %5B restart, check %5D:%0A    exit_code = command()%0A    if exit_code != 0:%0A      break%0A  exit(exit_code)%0A

add typecheck script