~whynothugo/systemd-lock-handler#4: 
Potential error in example service file?

Thank you very much for systemd-lock-handler, it's exactly what I needed to fill a gap in my config :)

In the Usage section of README.md, part of the example service file reads:

# Delay lock.target until this service is ready:
After=lock.target

However, systemd.unit(5) reads:

Before=, After=
    [...]

    Those two settings configure ordering dependencies between units. 
    If unit foo.service contains the setting Before=bar.service and both
    units are being started, bar.service's start-up is delayed until 
    foo.service has finished starting up. After= is the inverse of 
    Before=, i.e. while Before= ensures that the configured unit is 
    started before the listed unit begins starting up, After= ensures 
    the opposite, that the listed unit is fully started up before the 
    configured unit is started.

    [...]

This would imply that the example service would be delayed until lock.target is ready (the opposite of the comment in the example, as I understand it).

Which was your intention?

Status
REPORTED
Submitter
~jthvai
Assigned to
No-one
Submitted
11 months ago
Updated
a month ago
Labels
No labels applied.

~whynothugo 9 months ago

I think I probably meant:

 Before=lock.target

That would make sense the most, right?

~jthvai 9 months ago

I think so, that's what I've been using in my config so far. Thanks for the response!

Register here or Log in to comment, or comment via email.