Page 1 of 1
Deluge daemon wait for filesystem
Posted: Fri Sep 19, 2014 3:51 pm
by xvalentinex
I have an NFS server that I download to. When restarting, deluged starts before the NFS mount is available. This causes deluge to restart all seeds as downloads. Needless to say this creates a mess, I have to pause all torrents and force a recheck which can take hours/days.
Is there a way to force deluged to wait for the filesystem?
Re: Deluge daemon wait for filesystem
Posted: Fri Sep 19, 2014 6:31 pm
by Cas
What os?
Re: Deluge daemon wait for filesystem
Posted: Sat Sep 20, 2014 2:26 pm
by xvalentinex
Ubuntu 14.04 is the machine I'm running deluged and deluge-gtk on.
It mounts the remote nfs via fstab
Code: Select all
192.168.1.2:/storage/transient /mnt/transient nfs rw,nfsvers=3,rsize=8192,wsize=8192 0 0
CentOS 6.5 is the remote (I know I should run deluged on this machine, but for various reasons I'd prefer not to)
relevant export
Code: Select all
/storage/transient \
192.168.1.0/255.255.255.0(async,no_acl,no_subtree_check,rw,all_squash)
Re: Deluge daemon wait for filesystem
Posted: Sat Sep 20, 2014 2:48 pm
by Cas
Using the upstart script provided in the wiki should wait for filesystem
Re: Deluge daemon wait for filesystem
Posted: Sat Sep 20, 2014 3:59 pm
by xvalentinex
Thanks, I'll take a look.
Re: Deluge daemon wait for filesystem
Posted: Wed Feb 11, 2015 2:02 am
by ArmoredDragon
I'm still running into the problem described by the OP while using the upstart script found here:
http://dev.deluge-torrent.org/wiki/User ... ce/Upstart
I have a bash script that waits until it sees the NFS share working, but I'm not sure how to integrate it into upstart.
Code: Select all
#!/bin/bash
MNTPOINT="/my/nfs/torrents"
MNTTYPE=""
while [ "$MNTTYPE" != "nfs" ]; do
MNTTYPE=`stat -f $MNTPOINT | grep -o 'Type: [a-zA-Z0-9 \t]\+$' | grep -o ': [a-zA-Z0-9 \t]\+$' | grep -o '[a-zA-Z0-9]\+'`
sleep 5
done
The meat of it is the stat line which detects the directory type, which I pulled off of stackexchange somewhere. Again though I don't know how to properly integrate that into upstart. I'd try using the script/end script option but I suspect upstart would then interpret the stat command as being what it would need to respawn?