kill_controller.sh 172 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
#!/bin/bash

controllerpid="$(pgrep -f "hp4controller.controller")"

if [ -n "$controllerpid" ]
then
  sudo kill -SIGINT $controllerpid
else
  echo "could not find pid"
fi