Skip to main content

Timeline for Graceful way to kill process

Current License: CC BY-SA 3.0

6 events
when toggle format what by license comment
Feb 29, 2012 at 20:17 history edited Gilles 'SO- stop being evil' CC BY-SA 3.0
use pkill
Feb 29, 2012 at 5:16 comment added phemmer using pkill is a lot simpler. pkill uses the exact same matching criteria as pgrep, so you can do this in 1 command instead of 2 (and having to rely on the output of one).
Feb 29, 2012 at 4:31 comment added mills013 If you give pgrep the '-f' flag, it will match the pattern against the entire command-line. So, in this case kill pgrep -f selenium should work
Feb 29, 2012 at 4:21 vote accept Eric
Mar 2, 2012 at 3:56
Feb 29, 2012 at 4:21 comment added Eric I love the elegance of this, but the process looks like this: "root 26401 11997 2 23:20 pts/1 00:00:00 java -jar /home/lm/cron/selenium-server-standalone-2.19.0.jar" so I just changed it to pgrep java and it works :-) thanks!
Feb 29, 2012 at 4:01 history answered mills013 CC BY-SA 3.0