leon 3 недель назад
Родитель
Сommit
c30859a502
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      Makefile

+ 4 - 4
Makefile

@@ -1,17 +1,17 @@
 start:
 	nohup python3 infer.py > /dev/null 2>&1 &
 	@sleep 1s
-	@ps -ef | grep infer.py | grep -v grep
+	@ps -ef | grep infer.py | grep -v grep || true
 
 debug:
 	@python3 infer.py
 
 status:
-	@ps -ef | grep infer.py | grep -v grep
+	@ps -ef | grep infer.py | grep -v grep || true
 
 kill:
-	@ps -ef | grep infer.py | grep -v grep | awk '{print $$2}' | xargs kill
-	@ps -ef | grep infer.py | grep -v grep
+	@ps -ef | grep infer.py | grep -v grep | awk '{print $$2}' | xargs kill || true
+	@ps -ef | grep infer.py | grep -v grep || true
 
 log:
 	@tail -f log/runtime.log