Deluge daemon wait for filesystem

General support for problems installing or using Deluge
Post Reply
xvalentinex
New User
New User
Posts: 3
Joined: Fri Sep 19, 2014 3:45 pm

Deluge daemon wait for filesystem

Post 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?
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Deluge daemon wait for filesystem

Post by Cas »

What os?
xvalentinex
New User
New User
Posts: 3
Joined: Fri Sep 19, 2014 3:45 pm

Re: Deluge daemon wait for filesystem

Post 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)
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Deluge daemon wait for filesystem

Post by Cas »

Using the upstart script provided in the wiki should wait for filesystem
xvalentinex
New User
New User
Posts: 3
Joined: Fri Sep 19, 2014 3:45 pm

Re: Deluge daemon wait for filesystem

Post by xvalentinex »

Thanks, I'll take a look.
ArmoredDragon

Re: Deluge daemon wait for filesystem

Post 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?
Post Reply