dnsmngr: align with bbfdm microservice

This commit is contained in:
Vivek Kumar Dutta 2024-03-11 19:47:55 +05:30
parent 9bf0b5ff70
commit 2319f033f7
3 changed files with 9 additions and 14 deletions

View file

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=dnsmngr PKG_NAME:=dnsmngr
PKG_VERSION:=1.0.0 PKG_VERSION:=1.0.1
LOCAL_DEV:=0 LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1) ifneq ($(LOCAL_DEV),1)

View file

@ -1,13 +0,0 @@
#!/bin/sh /etc/rc.common
START=61
STOP=01
. /etc/bbfdm/bbfdm_services.sh
USE_PROCD=1
DNSMNGR_JSON_INPUT="/etc/dnsmngr/input.json"
start_service() {
bbfdm_add_service "bbfdm.dnsmngr" "${DNSMNGR_JSON_INPUT}"
}

View file

@ -0,0 +1,8 @@
#!/bin/sh
if ! uci -q get bbfdm.dnsmngr >/dev/null; then
uci set bbfdm.dnsmngr=micro_service
uci set bbfdm.dnsmngr.enable=1
uci set bbfdm.dnsmngr.input_json="/etc/dnsmngr/input.json"
uci set bbfdm.dnsmngr.loglevel=1
fi