I'm running transmission-daemon as a systemd service on OSMC. When opening its remote control web interface after a reboot all transfers are almost always halted with the message "Error: No data found! Ensure your drives are connected [...]".
I'm assuming this is because Transmission starts before the download path exists -- in this case on an USB drive that gets automatically mounted by the system to
/media/Elements/[...] without any manual configuration made from me. I have not edited
After trying this answer without success, I'm wondering if there's some other way to solve this? What I did according to that answer was to add the following in an
cat /etc/systemd/system/transmission.service.d/override.conf [Unit] After=media-Elements.mount After=media-Vault\x2013.mount After=media-Black\x20Mesa.mount
The service file:
$ cat /lib/systemd/system/transmission.service [Unit] Description=Transmission BitTorrent Daemon After=udisks-glue.service [Service] User=osmc Group=osmc Type=notify ExecStartPre=/bin/sleep 10 ExecStart=/usr/bin/transmission-daemon -f --log-error --allowed *.*.*.* [Install] WantedBy=multi-user.target
$ systemctl status transmission ● transmission.service - Transmission BitTorrent Daemon Loaded: loaded (/lib/systemd/system/transmission.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/transmission.service.d └─override.conf [...]
Worth mentioning is that I get
Warning: transmission.service changed on disk. Run 'systemctl daemon-reload' to reload units. when checking the status of
transmission after every reboot.
daemon-reload silences it until the next reboot.
This question is related, but has to do with fstab mounts. I would prefer to solve it without fstab if possible, since I don't want to treat the USB drive as permanently attached.
After trying the initial answer:
$ systemctl cat --no-pager transmission.service # Warning: transmission.service changed on disk, the version systemd has loaded is outdated. # This output shows the current version of the unit's original fragment and drop-in files. # If fragments or drop-ins were added or removed, they are not properly reflected in this output. # Run 'systemctl daemon-reload' to reload units. # /lib/systemd/system/transmission.service [Unit] Description=Transmission BitTorrent Daemon After=udisks-glue.service [Service] User=osmc Group=osmc Type=notify ExecStartPre=/bin/sleep 10 ExecStart=/usr/bin/transmission-daemon -f --log-error --allowed *.*.*.* [Install] WantedBy=multi-user.target # /etc/systemd/system/transmission.service.d/override.conf [Unit] RequiresMountsFor=/media/Elements [Install] WantedBy=media-Elements.mount