aspnetcore/eng/scripts/KillProcesses.sh

13 строки
210 B
Bash
Executable File

#!/usr/bin/env bash
# list processes that would be killed so they appear in the log
p=$(pgrep dotnet)
if [ $? -eq 0 ]
then
echo "These processes will be killed..."
ps -p $p
fi
pkill dotnet || true
exit 0