iopsys-feed/dslmngr/files/common/etc/init.d/dsl
Amit Kumar e9d0a81e8e dslmngr: Added dsl,fst,atm,ptm bbf microservice
DSL, ATM,FAST and PTM added as mlti object bbf microservice handling
 updated commit ID in Makefile
 incremented minor version
2024-03-12 09:18:17 +00:00

43 lines
566 B
Bash
Executable file

#!/bin/sh /etc/rc.common
. /lib/functions.sh
include /lib/dsl
. /etc/bbfdm/bbfdm_services.sh
START=20
USE_PROCD=1
DSLMNGR=$(which dslmngr)
start_service() {
bbfdm_add_service "bbfdm.DSL" "/etc/dsl/input.json"
[ -n "$DSLMNGR" ] && {
procd_open_instance
procd_set_param command "$DSLMNGR"
procd_set_param respawn
procd_close_instance
}
xdsl_configure
xtm_create_devices
}
stop_service() {
xtm_remove_devices
xdsl_stop
}
boot() {
xdsl_init
start
}
reload_service() {
stop
start
}
service_triggers() {
procd_add_reload_trigger dsl
}