mcst-linux-kernel/patches-2024.06.26/cups-filters-1.27.3/0003-Fix-exit-code-when-che...

19 lines
404 B
Diff

Link:
Subject: fix exit code when check service status
Bug: 132312
Tags: common
--- a/utils/cups-browsed.in 2021-06-25 13:44:43.859620157 +0300
+++ b/utils/cups-browsed.in 2021-06-25 13:45:55.203406228 +0300
@@ -139,8 +139,10 @@
status)
if test "$pid" != ""; then
echo "cups-browsed: running."
+ exit 0
else
echo "cups-browsed: not running."
+ exit 3
fi
;;