Re: [systemd-devel] Service to pause startup and wait for user input

2018-01-25 Thread Tomasz Torcz ️
On Thu, Jan 25, 2018 at 05:24:28PM +, Boyce, Kevin P [US] (AS) wrote:
> Good Afternoon List,
> 
> Does anyone know if there is a way to create a service unit that pauses early 
> on in the boot sequence and asks the user a question?
> A reply would be required via keyboard.

  This is an antipattern, but I guess you can hask around password
asking mechanism,
  https://www.freedesktop.org/software/systemd/man/systemd-ask-password.html


-- 
Tomasz TorczOnly gods can safely risk perfection,
xmpp: zdzich...@chrome.pl it's a dangerous thing for a man.  -- Alia

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] Service to pause startup and wait for user input

2018-01-25 Thread Uoti Urpala
On Thu, 2018-01-25 at 17:24 +, Boyce, Kevin P [US] (AS) wrote:
> Does anyone know if there is a way to create a service unit that
> pauses early on in the boot sequence and asks the user a question?
> A reply would be required via keyboard.

There is no separate "pause" feature. You can likely implement the
wanted functionality with explicit dependencies - create a unit which
is only considered "started" when the question has been answered, and
make whatever other units you want to start only after that depend on
the new unit.

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] Service to pause startup and wait for user input

2018-01-25 Thread Mantas Mikulėnas
On Thu, Jan 25, 2018 at 7:24 PM, Boyce, Kevin P [US] (AS) <
kevin.bo...@ngc.com> wrote:

> Good Afternoon List,
>
>
>
> Does anyone know if there is a way to create a service unit that pauses
> early on in the boot sequence and asks the user a question?
>
> A reply would be required via keyboard.
>

Use systemd-firstboot.service as an example. It has DefaultDependencies=no
and orders itself before sysinit.target and some early-boot services.

See also the diagram in the bootup(7) manpage.

-- 
Mantas Mikulėnas
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] Service to pause startup and wait for user input

2018-01-25 Thread Boyce, Kevin P [US] (AS)
Good Afternoon List,

Does anyone know if there is a way to create a service unit that pauses early 
on in the boot sequence and asks the user a question?
A reply would be required via keyboard.

Thanks,
Kevin
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel