Advertisement
Sirshark10

Untitled

Jun 7th, 2020
490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. [Unit]
  2. Description=Phosh, a shell for mobile phones
  3. Documentation=https://source.puri.sm/Librem5/phosh
  4.  
  5. # Make sure we are started after logins are permitted.
  6. After=systemd-user-sessions.service
  7. # If Plymouth is used, we want to start when it is on its way out.
  8. After=plymouth-quit-wait.service
  9.  
  10. # D-Bus is necessary for contacting logind. Logind is required.
  11. Wants=dbus.socket
  12. After=dbus.socket
  13.  
  14. # This scope is created by pam_systemd when logging in as the user.
  15. # This directive is a workaround to a systemd bug, where the setup of the
  16. # user session by PAM has some race condition, possibly leading to a failure.
  17. # See README for more details.
  18. After=session-c1.scope
  19.  
  20. # Since we are part of the graphical session, make sure we are started before
  21. # it is complete.
  22. Before=graphical.target
  23.  
  24. # Prevent starting on systems without virtual consoles
  25. ConditionPathExists=/dev/tty0
  26.  
  27. [Service]
  28. ExecStart=/usr/bin/phosh
  29. TimeoutStartSec=30
  30. User=user
  31. PAMName=login
  32. WorkingDirectory=/home/user
  33. Restart=on-failure
  34. RestartSec=5s
  35.  
  36. # A virtual terminal is need[Unit]
  37. Description=Phosh, a shell for mobile phones
  38. Documentation=https://source.puri.sm/Librem5/phosh
  39.  
  40. # Make sure we are started after logins are permitted.
  41. After=systemd-user-sessions.service
  42. # If Plymouth is used, we want to start when it is on its way out.
  43. After=plymouth-quit-wait.service
  44.  
  45. # D-Bus is necessary for contacting logind. Logind is required.
  46. Wants=dbus.socket
  47. After=dbus.socket
  48.  
  49. # This scope is created by pam_systemd when logging in as the user.
  50. # This directive is a workaround to a systemd bug, where the setup of the
  51. # user session by PAM has some race condition, possibly leading to a failure.
  52. # See README for more details.
  53. After=session-c1.scope
  54.  
  55. # Since we are part of the graphical session, make sure we are started before
  56. # it is complete.
  57. Before=graphical.target
  58.  
  59. # Prevent starting on systems without virtual consoles
  60. ConditionPathExists=/dev/tty0
  61.  
  62. [Service]
  63. ExecStart=/usr/bin/phosh
  64. TimeoutStartSec=30
  65. User=user
  66. PAMName=login
  67. WorkingDirectory=/home/user
  68. Restart=on-failure
  69. RestartSec=5s
  70.  
  71. # A virtual terminal is needed.
  72. TTYPath=/dev/tty7
  73. TTYReset=yes
  74. TTYVHangup=yes
  75. TTYVTDisallocate=yes
  76.  
  77. # Fail to start if not controlling the tty.
  78. StandardInput=tty-fail
  79. StandardOutput=journal
  80. StandardError=journal
  81.  
  82. # Log this user with utmp, letting it show up with commands 'w' and 'who'.
  83. UtmpIdentifier=tty7
  84. UtmpMode=user
  85.  
  86. [Install]
  87. WantedBy=graphical.targeted.
  88. TTYPath=/dev/tty7
  89. TTYReset=yes
  90. TTYVHangup=yes
  91. TTYVTDisallocate=yes
  92.  
  93. # Fail to start if not controlling the tty.
  94. StandardInput=tty-fail
  95. StandardOutput=journal
  96. StandardError=journal
  97.  
  98. # Log this user with utmp, letting it show up with commands 'w' and 'who'.
  99. UtmpIdentifier=tty7
  100. UtmpMode=user
  101.  
  102. [Install]
  103. WantedBy=graphical.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement