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)
committerJo-Philipp Wich <jo@mein.io>
Wed, 4 Sep 2019 11:27:48 +0000 (13:27 +0200)
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 11fe254d6f0987840b4c3ff4edf326113f12d9b7..854cc43ceafb7ce194d9ca44c41e35c91612af90 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)/project/rpcd.git
index 4a31aa0d00a2f0834a28ab9672b4191e08ef7e82..77ebcbe6cb7b57cf80fb73b782007ab318ef9a78 100755 (executable)
@@ -19,3 +19,6 @@ reload_service() {
        procd_send_signal rpcd
 }
 
+service_running() {
+       procd_running rpcd
+}