ubox: implement service_running() in log init.d script
It allows checking if service is running. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
This commit is contained in:
parent
285c83a004
commit
1b937cb141
2 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=ubox
|
PKG_NAME:=ubox
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL=$(PROJECT_GIT)/project/ubox.git
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/ubox.git
|
||||||
|
|
|
@ -96,3 +96,7 @@ start_service()
|
||||||
config_foreach validate_log_section system start_service_file
|
config_foreach validate_log_section system start_service_file
|
||||||
config_foreach validate_log_section system start_service_remote
|
config_foreach validate_log_section system start_service_remote
|
||||||
}
|
}
|
||||||
|
|
||||||
|
service_running() {
|
||||||
|
procd_running log
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue