script killing a process from service status output

view full story

http://www.unix.com – Hello, can some please suggest a script, for killing the process PID. This are steps I am currently performing to kill the process. I cant user service splunk stop, to kill these processes, because of uid and gid mismatch for splunk user. Code: # service splunk status Splunk status: splunkd is running (PID: 8909). splunk helpers are running (PIDs: 8910). splunkweb is running (PID: 8972). #kill -9 8909 8910 8972 # service splunk restart Thanks (HowTos)