[systemd-devel] systemd-sysv-generator bug ?

Andrei Borzenkov arvidjaar at gmail.com
Tue Nov 22 09:25:41 UTC 2016


On Tue, Nov 22, 2016 at 12:21 PM, Benoit SCHMID <Benoit.Schmid at 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.


More information about the systemd-devel mailing list