Skip to content

Commit 6600908

Browse files
committed
Improve an error message in chia start.
1 parent abd76c8 commit 6600908

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cmds/start_stop.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ def stop_service(root_path, service):
6767
with open(pid_path) as f:
6868
pid = int(f.readline())
6969
print(f"sending signal to pid {pid:>5} for {service}")
70-
os.kill(pid, kill_signal)
70+
try:
71+
os.kill(pid, kill_signal)
72+
except Exception:
73+
print(f"can't kill {pid} for {service}, is it running?")
7174
except Exception:
7275
print(f"can't open PID file {pid_path} for {service}, is it running?")
7376
return 1

0 commit comments

Comments
 (0)