ponmngr : Respawn ponmngr if at all there is a failure due to initialization delay

This commit is contained in:
Padmalochan Mohapatra 2023-05-22 08:59:28 +00:00 committed by Rahul Thakur
parent fcd0e77ba8
commit df7872e3f0

View file

@ -17,14 +17,15 @@ init_xpon() {
procd_open_instance ponmgr_cfg
procd_set_param command /userfs/bin/ponmgr_cfg
procd_set_param respawn
procd_close_instance
procd_open_instance omci
procd_set_param command /userfs/bin/omci
procd_set_param respawn
procd_close_instance
}
deinit_xpon() {
killall -9 omci 2>/dev/null
killall -9 ponmgr_cfg 2>/dev/null
return
}