Merge branch 'master' of https://github.com/Demonic31/scripts
This commit is contained in:
commit
01ae1d862d
13
SHELL/SEEDBOX/restart_rtorrent.sh
Normal file
13
SHELL/SEEDBOX/restart_rtorrent.sh
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
while getopts ":u:" opt; do
|
||||||
|
case "${opt}" in
|
||||||
|
u) user="${OPTARG}";;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
# EXTRACTION DU PID DE RTORRENT DU USER
|
||||||
|
pid=$(ps -u $user -o pid,command | grep '[0-9] rtorrent$' | cut -d "r" -f1)
|
||||||
|
|
||||||
|
kill -9 $pid
|
||||||
|
/root/rtorrent-check
|
Loading…
Reference in New Issue
Block a user