From: Rafał Miłecki Date: Wed, 3 Jul 2019 09:16:21 +0000 (+0200) Subject: rpcd: implement service_running() in init.d script X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=285c83a004ea57d484e6f27df9ac04d0d7b0f00f;p=openwrt%2Fstaging%2Fblogic.git rpcd: implement service_running() in init.d script It allows checking if service is running. Signed-off-by: Rafał Miłecki --- diff --git a/package/system/rpcd/Makefile b/package/system/rpcd/Makefile index 11fe254d6f09..854cc43ceafb 100644 --- a/package/system/rpcd/Makefile +++ b/package/system/rpcd/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=rpcd -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL=$(PROJECT_GIT)/project/rpcd.git diff --git a/package/system/rpcd/files/rpcd.init b/package/system/rpcd/files/rpcd.init index 4a31aa0d00a2..77ebcbe6cb7b 100755 --- a/package/system/rpcd/files/rpcd.init +++ b/package/system/rpcd/files/rpcd.init @@ -19,3 +19,6 @@ reload_service() { procd_send_signal rpcd } +service_running() { + procd_running rpcd +}