diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2019-07-03 11:16:21 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-09-04 13:27:48 +0200 |
commit | ff9255f7a188b311383b7e460987f468837c21e3 (patch) | |
tree | ec3f519024a572af3a0497eed4d16af9ff9a615d | |
parent | 5eeda5350b508c7bda05dd989b927e3a1a48a9b1 (diff) | |
download | upstream-ff9255f7a188b311383b7e460987f468837c21e3.tar.gz upstream-ff9255f7a188b311383b7e460987f468837c21e3.tar.bz2 upstream-ff9255f7a188b311383b7e460987f468837c21e3.zip |
rpcd: implement service_running() in init.d script
It allows checking if service is running.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 285c83a004ea57d484e6f27df9ac04d0d7b0f00f)
-rw-r--r-- | package/system/rpcd/Makefile | 2 | ||||
-rwxr-xr-x | package/system/rpcd/files/rpcd.init | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/package/system/rpcd/Makefile b/package/system/rpcd/Makefile index 11fe254d6f..854cc43cea 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 4a31aa0d00..77ebcbe6cb 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 +} |