Shell script to kill all processes used by a specific application or user
On Linux servers, when applications are not correctly shut down, there are still some processes running and starting the application with those processes still running can result in the application not starting correctly or not functioning properly. It is imperative to always kill all lingering processes after shutting down an application.
If the list of the lingering processes is long, it can be a pain to go through them one by one.
This shell script will kill them all in one command.