This commit is contained in:
Demonic 2022-06-29 11:31:51 +02:00
commit 01ae1d862d

View 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