summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/community/transmission-cli/finish
blob: 7a09e4fc9a8eb1df85aadb48ab687dc8cf55d897 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions
. /etc/conf.d/transmissiond

PID=`pidof -o %PPID /usr/bin/transmission-daemon`
    stat_runit "Stopping Transmission Daemon"
    [ ! -z "$PID" ] && kill $PID &> /dev/null
    if [ $? -ne 0 ]; then
      stat_fail
    else
      rm_daemon transmissiond
      stat_done
    fi