Changes between Version 3 and Version 4 of HeadlessUsageGentoo
- Timestamp:
- Dec 26, 2008, 6:20:21 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HeadlessUsageGentoo
v3 v4 69 69 # (machines/networks allowed/denied to control transmission -- comma separated) 70 70 # TR_ACL="+127.0.0.1" 71 # or (for versions 1.4x -- different syntax) 72 # TR_ACL="127.0.0.1" 71 73 72 74 # Enable use of block lists … … 120 122 NAME=transmission-daemon 121 123 declare -a OPTIONS 122 OPTIONS+=" -a ${TR_ACL:= +127.0.0.1}"124 OPTIONS+=" -a ${TR_ACL:=127.0.0.1}" 123 125 if [ -z "$TR_BLOCK" -o "$TR_BLOCK" = "no" ]; then 124 126 OPTIONS+=" -B" … … 178 180 --exec /usr/bin/transmission-daemon -- ${OPTIONS[@]} \ 179 181 || { eerror $E_MSG; eend 1; return 1; } 180 sleep 1182 sleep 2 181 183 transmission-remote ${CTL_PORT:-9091} \ 182 184 ${REMOTE_PASS:+-n $REMOTE_USER:$REMOTE_PASS} \ … … 233 235 234 236 The procedure is not difficult but involves more work: create a local emerge repository structure, copy the contents from the current transmission branch, inside your local copy duplicate the file transmission-1.33.ebuild into transmission-1.34.ebuild, change the configuration in /etc/make.conf adding 'PORTDIR_OVERLAY="/usr/local/portage"', rebuild the package (2 ebuild commands), and emerge will show it as an option. 237 ---- 238 Notes: 239 240 1. With version 1.42, the change from ACL to whitelist prompted the change above of dropping the "+"; leaving it causes a failure on the script when transmission-remote tries to change some parameters and is not authorized to do so (the whitelist is probably empty, not even 127.0.0.1). 241 242 2. As reported on the forum, the sleep on the script was increased to 2 seconds to avoid a communication failure between transmission-remote and the daemon. I observed this problem, with twice the torrents reported before in the forum, so the daemon startup might be slower the more torrents it has and the problem may persist.