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)
committerJo-Philipp Wich <jo@mein.io>
Wed, 4 Sep 2019 11:27:52 +0000 (13:27 +0200)
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 9631ac872f74c520d03da246db8dbebecdf2dd7d..6e67951929f4e47dbf88dd72f0dda161349a1ba1 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)/project/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
+}