rpcd: implement service_running() in init.d script
authorRafał Miłecki <rafal@milecki.pl>
Wed, 3 Jul 2019 09:16:21 +0000 (11:16 +0200)
committerRISCi_ATOM <bob@bobcall.me>
Fri, 13 Sep 2019 19:58:34 +0000 (15:58 -0400)
It allows checking if service is running.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 285c83a004ea57d484e6f27df9ac04d0d7b0f00f)

package/system/rpcd/Makefile
package/system/rpcd/files/rpcd.init

index ffc0e82e57fcbbca4df4c3a31227125ba1e6f79a..2ebb9e6179121bafab7fb555a15d7c2a2587d7dc 100644 (file)
@@ -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)/rpcd.git
index 4a31aa0d00a2f0834a28ab9672b4191e08ef7e82..77ebcbe6cb7b57cf80fb73b782007ab318ef9a78 100755 (executable)
@@ -19,3 +19,6 @@ reload_service() {
        procd_send_signal rpcd
 }
 
+service_running() {
+       procd_running rpcd
+}