Public bug reported:

Description:    Ubuntu 15.10
Release:        15.10

transmission-daemon:
  Installed: 2.84-1ubuntu1
  Candidate: 2.84-1ubuntu1
  Version table:
 *** 2.84-1ubuntu1 0
        500 http://fi.archive.ubuntu.com/ubuntu/ wily/main amd64 Packages
        100 /var/lib/dpkg/status

Expected:
Changing CONFIG_DIR in /etc/default/transmission-daemon, causes the daemon to 
use that directory for its configuration and runtime folders.

What happened instead:
Whatever value CONFIG_DIR had, transmission-daemon acted as if it was the 
default ('/var/lib/transmission-daemon/info').

I was finally able to fix this by adding 
'EnvironmentFile=/etc/default/transmission' into the service file and changing 
the name of CONFIG_DIR to TRANSMISSION_HOME in /etc/default/transmission. I 
tried adding $OPTIONS to the command line in the service file instead (as the 
older startup scripts do) but apparently systemd doesn't support substitution 
in the environment file. 
This enables specifying the configuration directory, and shouldn't break the 
older scripts.

Btw, having three init scripts is kind of confusing.

** Affects: transmission (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1559739

Title:
  Systemd service script for daemon doesn't use /etc/default
  /transmission-daemon

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/transmission/+bug/1559739/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to