nsbin/torrent_handler/stop.sh
Nico Schottelius df2daf524d init
Signed-off-by: Nico Schottelius <nico@manager.schottelius.org>
2017-07-19 17:15:41 +02:00

8 lines
210 B
Bash
Executable file

#!/bin/sh
#PIDS=$(ps axuwww | awk '/\/usr\/bin\/btdownloadcurses/ { print $2 }')
PIDS=$(ps axuwww | awk '/\/usr\/bin\/btdownloadheadless/ { print $2 }')
kill -TERM $PIDS
sleep 10
kill -KILL $PIDS 2>/dev/null