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

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

package/system/ubox/Makefile
package/system/ubox/files/log.init

index 306bf7f08c4059724e47c71678fea0b21a5c85a9..fd31cdc27e9db62f943173a16e3aacfe9876e30b 100644 (file)
@@ -1,7 +1,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ubox
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL=$(PROJECT_GIT)/ubox.git
index 250f805b440619a5d799643acb29876af77fc624..ba9c124c8ba6e71b875685680fde4f268f52659e 100644 (file)
@@ -96,3 +96,7 @@ start_service()
        config_foreach validate_log_section system start_service_file
        config_foreach validate_log_section system start_service_remote
 }
+
+service_running() {
+       procd_running log
+}