Advertisement
Guest User

Untitled

a guest
Jul 16th, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. [Unit]
  2. Description=Run script to set up environment
  3. Before=getty@1.service getty@2.service getty@3.service getty@4.service getty@5.service getty@6.service
  4.  
  5. [Service]
  6. Type=oneshot
  7. ExecStart=/bin/myscript
  8.  
  9. [Unit]
  10. Description=Run script to set up environment
  11.  
  12. [Service]
  13. Type=oneshot
  14. ExecStartPre=/bin/touch /etc/no-login-console
  15. ExecStart=/bin/myscript
  16. ExecStopPost=/bin/rm /etc/no-login-console
  17.  
  18. [Unit]
  19. ConditionPathExists=!/etc/no-login-console
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement