We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
chia start
1 parent abd76c8 commit 6600908Copy full SHA for 6600908
src/cmds/start_stop.py
@@ -67,7 +67,10 @@ def stop_service(root_path, service):
67
with open(pid_path) as f:
68
pid = int(f.readline())
69
print(f"sending signal to pid {pid:>5} for {service}")
70
- os.kill(pid, kill_signal)
+ try:
71
+ os.kill(pid, kill_signal)
72
+ except Exception:
73
+ print(f"can't kill {pid} for {service}, is it running?")
74
except Exception:
75
print(f"can't open PID file {pid_path} for {service}, is it running?")
76
return 1
0 commit comments