If you want to kill a process, but don’t know the process id, but you do know the service name, try this. It will get the process id and kill it all in one step. Replace httpd with the process name you want to kill
ps auxwww | grep httpd | awk ‘{print $2}’ | xargs kill -15
