#!/bin/bash
APP=$1
NAME=$2
if [ "$APP/$NAME" != "/" ]; then
#rtmp
kill $(ps aux | grep "$APP/$NAME" | awk '{print $2}')
else
#srt
#kill $(ps aux | grep "srt://127\.0\.0\.1:9001" | awk '{print $2}')
kill $(ps aux | grep "srt://:9001" | awk '{print $2}')
fi