Stdin during rhel 7 bootup (systemd)

Hi All,

I had a startup script (rc3.d/S01getinput) which will accept user inputs during the boot up in console. Basically it will prompt for input. It was working fine in RHEL6.

Now I have migrated to RHEL 7 and script gets executed as part of the boot up process. But it does not prompt for the user input.

How I can stdin during the RHEL7 boot up process ?

Thanks,
Kalai

If the user input you are looking for is just a password, you can use systemd-ask-password to get the input.

If you need multiple inputs from the user, have a look at how it is done in /usr/lib/systemd/system/initial-setup-text.service