diff options
author | Jo-Philipp Wich <jo@mein.io> | 2023-07-27 13:31:18 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2023-07-27 13:31:18 +0200 |
commit | 4987a409a7486ee5c6b9ef93f6783b1e4f29dea2 (patch) | |
tree | c8ea3849f802df725c85cc2b48c1caf675b8c254 /package/system/procd/Makefile | |
parent | 4af0a72a65d7c92ed4e7c2455090f695f424903d (diff) | |
download | openwrt-4987a409a7486ee5c6b9ef93f6783b1e4f29dea2.tar.gz openwrt-4987a409a7486ee5c6b9ef93f6783b1e4f29dea2.tar.bz2 openwrt-4987a409a7486ee5c6b9ef93f6783b1e4f29dea2.zip |
procd: improve status reporting for partially running services
The existing implementation incorrectly reported `running` for services
without any instances or with all instances stopped/terminated.
Improve the default implementation of `/etc/init.d/* status` to properly
report services with not running instances. In case a service exists,
but without running instance, the status call will now report
"not running" with exit code 5. In case some instances are running and
some are stopped/terminated, the call will report "running (X/Y)" where
`X` denoted the amount of running instances and `Y` the amount of total
registered ones.
Ref: https://forum.openwrt.org/t/x/159443
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'package/system/procd/Makefile')
-rw-r--r-- | package/system/procd/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/system/procd/Makefile b/package/system/procd/Makefile index 9e829a2159..d0576c1259 100644 --- a/package/system/procd/Makefile +++ b/package/system/procd/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=procd -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL=$(PROJECT_GIT)/project/procd.git |