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 285c83a004)
openwrt-19.07
Rafał Miłecki 2019-07-03 11:16:21 +02:00 committed by Jo-Philipp Wich
parent 5eeda5350b
commit ff9255f7a1
2 changed files with 4 additions and 1 deletions

View File

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=rpcd PKG_NAME:=rpcd
PKG_RELEASE:=2 PKG_RELEASE:=3
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=$(PROJECT_GIT)/project/rpcd.git PKG_SOURCE_URL=$(PROJECT_GIT)/project/rpcd.git

View File

@ -19,3 +19,6 @@ reload_service() {
procd_send_signal rpcd procd_send_signal rpcd
} }
service_running() {
procd_running rpcd
}