task lose when restart transmission-daemon

Discussion of the Web Interface for Transmission, formerly known as Clutch. This applies to all version of Transmission
Post Reply
myprettyelf
Posts: 1
Joined: Sun Jan 23, 2011 8:53 am

task lose when restart transmission-daemon

Post by myprettyelf »

# transmission-daemon -V
transmission-daemon 2.13 (11501)

transmission-web only

# /usr/local/etc/rc.d/transmission stop
and
# /usr/local/etc/rc.d/transmission start

all task lose :shock:
and I rename /torrents/*.7c400f532052dd3f.torrent.added -> *.7c400f532052dd3f.torrent
it is working

ee settings.json

Code: Select all

{
    "alt-speed-down": 50,
    "alt-speed-enabled": false,
    "alt-speed-time-begin": 540,
    "alt-speed-time-day": 127,
    "alt-speed-time-enabled": false,
    "alt-speed-time-end": 1020,
    "alt-speed-up": 50,
    "bind-address-ipv4": "0.0.0.0",
    "bind-address-ipv6": "::",
    "blocklist-enabled": false,
    "blocklist-url": "http://www.example.com/blocklist",
    "cache-size-mb": 128,
    "dht-enabled": true,
    "download-dir": "/usr/local/etc/transmission/home/Downloads",
    "encryption": 1,
    "idle-seeding-limit": 30,
    "idle-seeding-limit-enabled": false,
    "incomplete-dir": "/usr/local/etc/transmission/home/Downloads",
    "incomplete-dir-enabled": false,
    "lazy-bitfield-enabled": true,
    "lpd-enabled": false,
    "message-level": 2,
    "open-file-limit": 64,
    "peer-limit-global": 240,
    "peer-limit-per-torrent": 160,
    "peer-port": 51413,
    "peer-port-random-high": 65535,
    "peer-port-random-low": 49152,
    "peer-port-random-on-start": false,
    "peer-socket-tos": 0,
    "pex-enabled": true,
    "port-forwarding-enabled": true,
    "preallocation": 1,
    "ratio-limit": 2,
    "ratio-limit-enabled": true,
    "rename-partial-files": true,
    "rpc-authentication-required": false,
    "rpc-bind-address": "0.0.0.0",
    "rpc-enabled": true,
    "rpc-password": "{c18fa6dc5de9883803cebfb210d0b3b43c8aded97lhNMnqM",
    "rpc-port": 9091,
    "rpc-username": "",
    "rpc-whitelist": "127.0.0.1,192.168.1.*",
    "rpc-whitelist-enabled": true,
    "script-torrent-done-enabled": false,
    "script-torrent-done-filename": "",
    "speed-limit-down": 90,
    "speed-limit-down-enabled": true,
    "speed-limit-up": 30,
    "speed-limit-up-enabled": true,
    "start-added-torrents": true,
    "trash-original-torrent-files": false,
    "umask": 2,
    "upload-slots-per-torrent": 14,
    "watch-dir": "/usr/local/etc/transmission/home/torrents",
    "watch-dir-enabled": true
}

ee /usr/local/etc/rc.d/transmission

Code: Select all

#!/bin/sh
#
# $FreeBSD: ports/net-p2p/transmission-cli/files/transmission.in,v 1.3 2010
#
# PROVIDE: transmission
# REQUIRE: DAEMON
#
# Add the following lines to /etc/rc.conf to enable this service:
#
# transmission_enable:       Set to NO by default. Set it to YES to enable
# transmission_watch_dir:    Directory for torrent files to download
#                            automatically. Off by default unless you add
#                            a path.
# transmission_conf_dir:     Directory where transmission configuration
#                            data is stored.
#                            Default: /usr/local/etc/transmission/home
# transmission_download_dir: Directory to store downloaded data.
#                            Default: /usr/local/etc/transmission/home/Down
# transmission_user:         The user account transmission daemon runs as w
#                            you want it to be. It uses 'transmission' user
#                            default. Do not sets it as empty or it will ru
#                            as root.
#

. /etc/rc.subr

name="transmission"
rcvar=${name}_enable

command=/usr/local/bin/transmission-daemon

load_rc_config ${name}

: ${transmission_enable:="NO"}
: ${transmission_user:="transmission"}
: ${transmission_conf_dir:="/usr/local/etc/transmission/home"}
: ${transmission_download_dir:="/usr/local/etc/transmission/home/Downloads"
: ${transmission_watch_dir:="/usr/local/etc/transmission/home/torrents"}

transmission_flags=" \
        ${transmission_watch_dir:+-c ${transmission_watch_dir}} \
        ${transmission_conf_dir:+-g ${transmission_conf_dir}} \
        ${transmission_download_dir:+-w ${transmission_download_dir}} \
        ${transmission_flags}"

run_rc_command "$1"
Post Reply