Run BindFS after filesystem mounted
Hello,
I use BindFS so that multiple users on my machine can access the same shared folder without permissions issues (I was always surprised it was so difficult, but that's by the by). The guide that essentially sets out what I do is here (Method 1 - Fstab):
https:/
I have recently rebuilt my machine and now I want the shared directory (/home/shared) to actually be on the spinning disk rather than the SSD. I can do this with:
bindfs -o perms=0700,
If I put this into my /etc/fstab, however, it sometimes works and sometimes doesn't, so I suspect it is to do with whether /media/spinning is mounted before it tries to do the BindFS mount. I therefore want to run the command after the filesystem is mounted. The guide linked to above sets out how to do this as Method 2, but only using an Upstart job.
I tried to convert this to a systemd job, but it doesn't seem to be working:
/etc/systemd/
===
[Unit]
Description=Run BindFS so that both users can access folder
Requires=
After=media-
[Service]
Type=oneshot
ExecStart=
[Install]
WantedBy=
===
Can anybody suggest what I've done wrong?
Thanks!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu systemd Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Aaron Whitehouse
- Solved:
- Last query:
- Last reply: