johman10 / flood-for-transmission

A Flood (https://github.com/Flood-UI/flood) clone for Transmission
GNU General Public License v3.0
341 stars 33 forks source link

Bad unit file setting after editing transmission-daemon.service #267

Closed chuckiton closed 3 years ago

chuckiton commented 3 years ago

hi, I just tried to install Flood for transmission as per your instructions but ran into issues trying to edit the service. Had to revert the changes after editing the service as it wouldn't run. Here is the error log.

Warning: The unit file, source configuration file or drop-ins of transmission-daemon.service changed on disk. Run 'systemctl daemon-reload' to reload units.
● transmission-daemon.service - Transmission BitTorrent Daemon
   Loaded: bad-setting (Reason: Unit transmission-daemon.service has a bad unit file setting.)
  Drop-In: /etc/systemd/system/transmission-daemon.service.d
           └─override.conf
   Active: inactive (dead) since Thu 2021-10-07 20:15:39 BST; 7min ago
 Main PID: 2745 (code=exited, status=0/SUCCESS)

tried running daemon-reload but it didn't help.

johman10 commented 3 years ago

Could you share your /etc/systemd/system/transmission-daemon.service.d/override.conf looked like after the changes? Sounds like something was configured wrongly somehow. Could it have been a typo?

johman10 commented 3 years ago

I'm closing this since I'm running this myself without any problem. My config when running systemctl edit transmission-daemon.service looks like this:

[Service]
Environment=TRANSMISSION_WEB_HOME=/home/x/flood-for-transmission/public

As long as you update the path correctly it should work for you too. :)

guglovich commented 1 year ago

I couldn't get it up and running either. Because in order to have settings in /etc/systemd/system/transmission-daemon.service.d/override.conf, systemd first asks to fill in /etc/systemd/system/transmission-daemon.service, from which it will copy settings by putting comments # before them

guglovich commented 1 year ago

I added some options to the config and it turned on. But the interface is wooden, only a couple of buttons can be pressed.

[Unit]
Description=Transmission BitTorrent Daemon

[Service]
Environment=TRANSMISSION_WEB_HOME=/home/jinx/.transmission/flood-for-transmission
User=jinx
Type=notify
ExecStart=/usr/bin/transmission-daemon -f --log-error --log-info --log-debug -->
ExecStop=/bin/kill -s STOP $MAINPID
ExecReload=/bin/kill -s HUP $MAINPID