How i can correct shutdown n2hell from linux console ?

2 views
Skip to first unread message

Lesh...@gmail.com

unread,
Mar 4, 2008, 1:09:23 AM3/4/08
to n2hell
Hi, i'm using gentoo & i make rc-script for rtorrent in screen and
n2hell. With start/stop rtorrent i haven't problems, but i stopping
n2hell by command "killall -9 java". How made this correct ?
-------
Превед, я сделал в генте rc-скрипты для рторрента(запускается через
скрин) и н2хелл. Как правильно выгружать н2хелл из консоли ?
Заранее благодарю.

vovasty

unread,
Mar 4, 2008, 4:14:05 AM3/4/08
to n2hell
hi,
using killall will affect all java processes, better use kill with pid
of current java instace You can obtain PID with command like this
PID=ps ux | awk '/n2hell.jar/ && \!/awk/ {print $2}'
kill $PID
also, you not need -9 signal, use common SIGTERM (kill without
parameters)

vovasty

unread,
Mar 4, 2008, 4:14:58 AM3/4/08
to n2hell
oops, missed backqoutes=)

PID=`ps ux | awk '/n2hell.jar/ && \!/awk/ {print $2}'`
kill $PID

Lesh...@gmail.com

unread,
Mar 13, 2008, 1:37:12 AM3/13/08
to n2hell
thanks
-----
пасиба )
Reply all
Reply to author
Forward
0 new messages