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?
Deluge daemon wait for filesystem
-
- New User
- Posts: 3
- Joined: Fri Sep 19, 2014 3:45 pm
-
- New User
- Posts: 3
- Joined: Fri Sep 19, 2014 3:45 pm
Re: Deluge daemon wait for filesystem
Ubuntu 14.04 is the machine I'm running deluged and deluge-gtk on.
It mounts the remote nfs via fstab
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
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
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
Using the upstart script provided in the wiki should wait for filesystem
-
- New User
- Posts: 3
- Joined: Fri Sep 19, 2014 3:45 pm
Re: Deluge daemon wait for filesystem
Thanks, I'll take a look.
Re: Deluge daemon wait for filesystem
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.
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?
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