diff options
author | root <root@rshg047.dnsready.net> | 2011-05-18 22:46:11 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-05-18 22:46:11 +0000 |
commit | 82b609ecce972e236c2ce887ecd55ec30e2874a7 (patch) | |
tree | 0f538ac08e2ce61505f47f42534a969f42863767 /extra/transmission/transmissiond | |
parent | 4a67ab8a761f1d0ef59988a513f9f2163f94a869 (diff) |
Wed May 18 22:46:11 UTC 2011
Diffstat (limited to 'extra/transmission/transmissiond')
-rw-r--r-- | extra/transmission/transmissiond | 11 |
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 |