summaryrefslogtreecommitdiff
path: root/extra/transmission/transmissiond
diff options
context:
space:
mode:
Diffstat (limited to 'extra/transmission/transmissiond')
-rw-r--r--extra/transmission/transmissiond11
1 files changed, 10 insertions, 1 deletions
diff --git a/extra/transmission/transmissiond b/extra/transmission/transmissiond
index ff83bd331..1b4b4dc0e 100644
--- a/extra/transmission/transmissiond
+++ b/extra/transmission/transmissiond
@@ -31,7 +31,16 @@ case "$1" in
while [ ! -z "$PID" -a -d "/proc/$PID" ]; do sleep 1; done
$0 start
;;
+ reload)
+ stat_busy "Reloading config"
+ [ ! -z "$PID" ] && kill -HUP $PID &> /dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ stat_done
+ fi
+ ;;
*)
- echo "usage: $0 {start|stop|restart}"
+ echo "usage: $0 {start|stop|restart|reload}"
esac
exit 0