Which one should stop a process?
SIGTERM vs SIGKILL
Start with SIGTERM. It asks the process to exit and leaves room for a handler to clean up. SIGKILL ends it without running a handler. Use SIGKILL when the process has not responded and waiting longer is worse.
SIGTERM · Linux 15 · Terminate the process/SIGKILL · Linux 9 · Terminate the process