Hi all.
My main intention is to use SOCKS5 server opened on my router for all tracker connections in Transmission.
As last versions of Transmission relies entirely on libcurl, I need to pass environment variable to use the corresponding proxy.
On Linux systems I need to edit a corresponding systemd script like
My main intention is to use SOCKS5 server opened on my router for all tracker connections in Transmission.
As last versions of Transmission relies entirely on libcurl, I need to pass environment variable to use the corresponding proxy.
On Linux systems I need to edit a corresponding systemd script like
Code:
vim /lib/systemd/system/transmission-daemon.service
However Asus Merlin uses init.d script to start Transmission so I have something like...
[Service]
Environment="ALL_PROXY=socks5://192.168.111.1:1080"
...
My question is: how to set environment variable in init.d to be used in transmission only (not system-wide)?#!/bin/sh
ENABLED=yes
PROCS=transmission-daemon
ARGS="-g /opt/etc/transmission"
PREARGS=""
DESC=$PROCS
PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
TRANSMISSION_WEB_HOME="/opt/share/transmission/web"
. /opt/etc/init.d/rc.func