title: How to run last and print my script output during boot with systemd?
body: <p>I’m trying to configure my host during deployment process and to give an output to the screen of what my configuration script is doing.</p>
  
  <p>In RHEL6 it was easy i was echoing what I want to screen or used dialog to display the output, and only when my script was done i got the login prompt.</p>
  
  <ul>
  <li>( I used rc3.d or rc5.d folder with script name S99.myscript.sh)</li>
  </ul>
  
  <p>In RHEL7 i can’t mimic this process.
  rc.local does not display my output during booting and also its not guaranteed it will run last.</p>
  
  <p>I guess I need to create a systemd service file that will run my script.</p>
  
  <p>But how do I output the result to the screen while booting?</p>
  
  <p>And how do I make sure I will not get the log-in prompt before my script ends?</p>