sonic-buildimage/dockers/docker-team/start.sh

25 lines
293 B
Bash
Executable File

#!/bin/bash
TEAMD_CONF_PATH=/etc/teamd
function clean_up {
pkill -9 teamd
pkill -9 teamsyncd
service rsyslog stop
exit
}
trap clean_up SIGTERM SIGKILL
service rsyslog start
if [ -d $TEAMD_CONF_PATH ]; then
for f in $TEAMD_CONF_PATH/*; do
teamd -f $f -d
done
fi
teamsyncd &
read