Page 1 of 1

Deluge systemd and mount issue

Posted: Sun Oct 23, 2016 8:39 pm
by raspdealer
Hi there,

I've followed this guide: http://dev.deluge-torrent.org/wiki/User ... ce/systemd
And here is my file script:

Code: Select all

[Unit]
Description=Deluge Bittorrent Client Daemon
After=network-online.target
RequiresMountsFor=media-Lacie\x2dCloudBox.mount

[Service]
Type=simple
User=pi
Group=deluge
UMask=007

ExecStart=/usr/bin/deluged -d

Restart=on-failure

# Configures the time to wait before service is stopped forcefully.
TimeoutStopSec=300

[Install]
WantedBy=multi-user.target


But after each reboot, my file are in error.
As soon as I force a check, they are back... but annoying because I have a lot of them.

Any ideas?

Thanks

Re: Deluge systemd and mount issue

Posted: Mon Oct 24, 2016 12:48 pm
by shamael
noauto in fstab?

Re: Deluge systemd and mount issue

Posted: Mon Oct 24, 2016 4:29 pm
by raspdealer
Yes. Should I remove it? :?

Code: Select all

//192.168.1.111/Family /media/Lacie-CloudBox cifs password=,uid=1000,gid=1000,x-systemd.automount,noauto,sec=ntlm,iocharset=utf8 0 0

Re: Deluge systemd and mount issue

Posted: Tue Oct 25, 2016 7:19 am
by shamael
In the unit file you say to start the service only if the mount is present. In the fstab it's not mounted automatically during a reboot.
--> sounds logic to have a failed service on boot and ok when the mount is reachable

Try to replace noauto with auto in your fstab. I guess this drive is necessary for your torrent file, if not simply remove the dependency

Code: Select all

RequiresMountsFor=media-Lacie\x2dCloudBox.mount

Re: Deluge systemd and mount issue

Posted: Tue Nov 22, 2016 8:24 pm
by raspdealer
I have this error now:
Nov 23 04:20:47 bananapi systemd[1]: [/etc/systemd/system/deluged.service:4] Failed to add required mount for, ignoring: media-Lacie\x2dCloudBox.mount

Is something wrong?

Re: Deluge systemd and mount issue

Posted: Wed Nov 23, 2016 2:12 pm
by shamael
What did you changed? Is the mount name correct ? check with

Code: Select all

sudo systemctl list-units
maybe the mount is not yet effective when the service is started, I get this issue with smartmontools.

Re: Deluge systemd and mount issue

Posted: Wed Nov 23, 2016 9:05 pm
by raspdealer
After removing ,x-systemd.automount from my fstab (I don't know why I had this)
And adding a sleep before launching deluge, it seems to work.

Re: Deluge systemd and mount issue

Posted: Mon Dec 05, 2016 7:44 pm
by shamael
take a look at my last post and feedback please :)
http://forum.deluge-torrent.org/viewtop ... 03#p225403