[systemd-devel] Systemd dependencies

Boyce, Kevin P [US] (AS) Kevin.Boyce at ngc.com
Mon Dec 10 20:26:39 UTC 2018


I seem to be struggling with what should be a very basic operation.  I've seen similar questions posted to the list here and none of them are really adequate.

I'm trying to prompt the user to ask a question as the system is coming up (so the system can configure it's network and other things based on a hostname the user enters).

I have this part working using system-ask-password which is executed using a oneshot/idle service unit.  However before the user can enter their response on the console the graphic display starts up.  In the unit file I've tried all sorts of combinations of Requires, After, WantedBy, RequiredBy, etc. to make the graphical.target happen only after this script has completed its execution to no avail.

Any help would be appreciated.  I've thought of creating a new custom target and putting my service in it.  Is there a way to force another target not to start until another target is completely finished?

Just wondering why this sort of operation is so hard.

Thanks,
Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20181210/92aad2da/attachment.html>


More information about the systemd-devel mailing list