Initially I followed the user guide on the forum and had both running with the deluge user and group, but I altered the start scripts to use myuser instead.
When I check the log for deluge-web I get the following:
Code: Select all
[WARNING ] 20:41:13 config:419 Unable to open config file: /var/lib/deluge/.config/deluge/web.conf because: [Errno 13] Permission denied: '/var/lib/deluge/.config/deluge/web.conf'
[ERROR ] 20:41:13 config:431 Error writing new config file: [Errno 13] Permission denied: '/var/lib/deluge/.config/deluge/web.conf.new'
deluged.service
Code: Select all
[Unit]
Description=Deluge Bittorrent Client Daemon
After=network-online.target
Requires=storage.mount
BindsTo=storage.mount
[Service]
Type=simple
User=myuser
Group=myuser
UMask=007
ExecStart=/usr/bin/deluged -d -l /var/log/deluge/daemon.log -L warning
Restart=on-failure
# Configures the time to wait before service is stopped forcefully.
TimeoutStopSec=300
[Install]
WantedBy=multi-user.target
Code: Select all
[Unit]
Description=Deluge Bittorrent Client Web Interface
After=network-online.target
[Service]
Type=simple
User=myuser
Group=myuser
UMask=027
ExecStart=/usr/bin/deluge-web -l /var/log/deluge/web.log -L warning
Restart=on-failure
[Install]
WantedBy=multi-user.target
Teejvan