mirror of
https://github.com/blazblue547-afk/ForgeOS.git
synced 2026-12-02 14:34:17 -05:00
Add PAM-backed login sessions
This commit is contained in:
1 parent
90ce800112
commit
42bc94d831
25 files changed
+334
-44
No files matched your search
@@ -0,0 +1,26 @@
|
||||
[Unit]
|
||||
Description=ForgeOS login prompt on %I
|
||||
Documentation=man:systemd.service(5)
|
||||
Wants=systemd-logind.service
|
||||
After=systemd-logind.service systemd-user-sessions.service getty-pre.target
|
||||
Before=getty.target
|
||||
ConditionPathExists=/dev/%I
|
||||
IgnoreOnIsolate=yes
|
||||
|
||||
[Service]
|
||||
ExecStart=-/sbin/getty -L 0 %I linux
|
||||
Type=idle
|
||||
Restart=always
|
||||
RestartSec=0
|
||||
UtmpIdentifier=%I
|
||||
StandardInput=tty
|
||||
StandardOutput=tty
|
||||
TTYPath=/dev/%I
|
||||
TTYReset=yes
|
||||
TTYVHangup=yes
|
||||
TTYVTDisallocate=yes
|
||||
IgnoreSIGPIPE=no
|
||||
SendSIGHUP=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=getty.target
|
||||
Reference in new issue
Block a user