#!/bin/bash
binpid=$(ps axco pid,command | awk '$2 == "Application" {print $1; }')
if [ -n "$binpid" ]; then
    for process in "$binpid"; do
        kill $process 
    done
fi

binpid=$(ps axco pid,command | awk '$2 == "Controller" {print $1; }')
if [ -n "$binpid" ]; then
    for process in "$binpid"; do
        kill $process 
    done
fi

binpid=$(ps axo pid,command | awk '$2 == "trueconf-kiosk-configurator" {print $1; }')
if [ -n "$binpid" ]; then
    for process in "$binpid"; do
        kill $process 
    done
fi
