From ff9255f7a188b311383b7e460987f468837c21e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Wed, 3 Jul 2019 11:16:21 +0200 Subject: rpcd: implement service_running() in init.d script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It allows checking if service is running. Signed-off-by: Rafał Miłecki (cherry picked from commit 285c83a004ea57d484e6f27df9ac04d0d7b0f00f) --- package/system/rpcd/Makefile | 2 +- package/system/rpcd/files/rpcd.init | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'package/system/rpcd') 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 +} -- cgit v1.2.3