sonic-buildimage/dockers/docker-iccpd/iccpd.sh
2021-12-08 09:21:44 -08:00

20 lines
303 B
Bash

#!/usr/bin/env bash
export platform=$(sonic-cfggen -d -y /etc/sonic/sonic_version.yml --var asic_type)
function start_app {
rm -f /var/run/iccpd/*
mclagsyncd &
iccpd
}
function clean_up {
pkill -9 mclagsyncd
pkill -9 iccpd
exit
}
trap clean_up SIGTERM SIGKILL
start_app
read