On Tue, Nov 22, 2016 at 12:21 PM, Benoit SCHMID <benoit.sch...@unige.ch> wrote: > Hello, > > On 11/22/2016 09:15 AM, Andrei Borzenkov wrote: >> Mount units are also propagated to systemd user instance. So you >> probably can also run this unit in systemd user context and have usual >> dependencies on filesystems (like RequiresMountsFor) - at least, I >> think so :) You will need to enable lingering then as mentioned >> already. User instances are stopped on shutdown too. > > Do you mean that adding "After=user.slice" would also prevent systemd to > unmount > fs before my stop command is finished? >
I do not think so, unless you have explicit dependencies on mount points (they are commented out in your link). If you do have explicit dependencies, I expect this to work too. _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel