restart.py 262 B

123456789101112131415
  1. #!/usr/bin/env python3.9
  2. import subprocess
  3. import stop
  4. import start
  5. import time
  6. def restart():
  7. print("Restarting LAS...")
  8. stop.stop()
  9. time.sleep(1) # 等待 1 秒,确保已完全停止
  10. start.start()
  11. if __name__ == "__main__":
  12. restart()