diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2019-07-03 11:16:21 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2019-07-15 16:21:56 +0200 |
commit | 285c83a004ea57d484e6f27df9ac04d0d7b0f00f (patch) | |
tree | e53ca6a9a63edc30dec668b1ad5e3d0d1b3c9e52 /package/system | |
parent | cbae306815bdfc335eeedc35dc5df3d2d4021a2a (diff) | |
download | upstream-285c83a004ea57d484e6f27df9ac04d0d7b0f00f.tar.gz upstream-285c83a004ea57d484e6f27df9ac04d0d7b0f00f.tar.bz2 upstream-285c83a004ea57d484e6f27df9ac04d0d7b0f00f.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>
Diffstat (limited to 'package/system')
-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 +} |