if pgrep process_name 2>/dev/null; then echo "Terminating process_name" pkill process_name fi
ps ux # list the running Process with PID kill xxxx # hear xxxx is the process id