Skip to content

Instantly share code, notes, and snippets.

@jpartain89
Created April 1, 2016 04:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpartain89/4b79f82f79989638539f2ca2dcd0a97f to your computer and use it in GitHub Desktop.
Save jpartain89/4b79f82f79989638539f2ca2dcd0a97f to your computer and use it in GitHub Desktop.
So, in case someone stumbles across this or I happen to forget.....
The Upstart/init script also needs to have the /etc/default/transmission-daemon file as well, because that references where all your transmission stuff IS....
# defaults for transmission-daemon
# sourced by /etc/init.d/transmission-daemon
# Change to 0 to disable daemon
ENABLE_DAEMON=1
# This directory stores some runtime information, like torrent files
# and links to the config file, which itself can be found in
# /etc/transmission-daemon/settings.json
CONFIG_DIR="/home/{YOUR_USER_NAME_GOES_HERE}/.config/transmission-daemon"
# Default options for daemon, see transmission-daemon(1) for more options
OPTIONS="--config-dir $CONFIG_DIR"
# (optional) extra options to start-stop-daemon
START_STOP_OPTIONS="--iosched idle --nicelevel 10 --pidfile /var/run/transmission-daemon.pid --make-pidfile"
description "Transmission daemon for user"
start on (filesystem and net-device-up IFACE=lo)
stop on runlevel [!2345]
# give time to send info to trackers
kill timeout 30
expect fork
respawn
script
USER=root
test -f /etc/default/transmission-daemon && . /etc/default/transmission-daemon
test "$ENABLE_DAEMON" != "0" || exit 0
exec start-stop-daemon --start --quiet --chuid $USER --exec /usr/bin/transmission-daemon -- $OPTIONS
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment