Start daemon after specific samba share is mounted
Posted
by
getack
on Server Fault
See other posts from Server Fault
or by getack
Published on 2014-06-01T09:18:12Z
Indexed on
2014/06/02
3:31 UTC
Read the original article
Hit count: 508
I axed this question on AskUbuntu, but it's not getting any traction from there... So I'll try here as well:
I have a homebrew headless NAS running 12.04.
In it I have a bunch of disks that are presented as a samba share thanks to Greyhole. If I want to do anything to the files within this share, I must do it through greyhole so that everything is updated properly. Thus, the share must be mounted locally and then accessed from there if I want to work on the files from the local machine. I do this mounting automatically thanks to these instructions.
I also have Deluge installed that takes care of all my torrenting needs. Deluge's default download location is in this share, so that all the downloads are immediately available to the rest of the network.
Obviously for everything to work, the share must be mounted, otherwise Deluge is going to have a problem downloading to it.
The problem is, it seems like Deluge is starting before the shares are mounted when the system boots. So downloading/seeding does not continue automatically after boot. I have to log in and force a manual rescan and start on each torrent otherwise all the torrents just hangs on the error.
Is there a way I can make deluge start after the shares got properly mounted? I looked into Upstart's emits
functionality but I cannot seem to get it to work properly. Any advice?
© Server Fault or respective owner