If you use transmission-daemon on your Raspberry Pi and want to have logs to a file, you can follow a few simple steps to accomplish this:
Edit the service file:
1 |
sudo vim /lib/systemd/system/transmission-daemon.service |
Change the ExecStart line to look like this:
1 |
ExecStart=/usr/bin/transmission-daemon -f --log-debug --logfile /var/log/transmission.log |
You can choose between these options:
1 2 3 4 5 6 7 8 |
--log-error Show error messages --log-info Show error and info messages --log-debug Show error, info, and debug messages |
systemctl will complain that the service file was changed. Run:
1 |
sudo systemctl daemon-reload |
to reload units.
Create the log file and assign the correct ownership and permissions:
1 2 3 |
sudo touch /var/log/transmission.log sudo chown debian-transmission /var/log/transmission.log sudo chmod 644 /var/log/transmission.log |
Restart the service:
1 |
sudo service transmission-daemon restart |
Have fun!