git.lucas.co / cce-display-manager
login greeter
git clone https://git.lucas.co/cce-display-manager.git

cce-display-manager.service (1.3K)

 1 [Unit]
 2 Description=CCE Display Manager
 3 After=systemd-user-sessions.service plymouth-quit-active.service
 4 Conflicts=getty@tty1.service
 5 Before=graphical.target
 6 
 7 [Service]
 8 Type=simple
 9 ExecStart=/usr/bin/cce-display-manager
10 StandardInput=tty
11 # The daemon, greeter, cage and session worker log to the journal
12 # (journalctl -u); the daemon sees JOURNAL_STREAM and skips its old
13 # /var/log file. The session's own output goes to the user's
14 # /run/user/<uid>/cce-session.log, not here.
15 StandardOutput=journal
16 StandardError=journal
17 TTYPath=/dev/tty1
18 TTYReset=yes
19 TTYVHangup=yes
20 TTYVTDisallocate=yes
21 UtmpIdentifier=tty1
22 UtmpMode=user
23 Environment=RUST_LOG=info
24 # Come back after ANY exit. Ctrl+C at the greeter exits the daemon (0), and
25 # without this the login screen stayed gone until a reboot. A daemon that
26 # dies mid-session has already taken the session with it: it leads the tty's
27 # session, the compositor is in its foreground process group, and neither the
28 # compositor nor startcce handles the SIGHUP the kernel sends them when it
29 # exits. So restarting then brings back a login screen, not a second greeter
30 # beside a live session. RestartSec paces a daemon that cannot
31 # start at all (cage missing); systemd's start limit (5 in 10s) then stops it.
32 Restart=always
33 RestartSec=1
34 
35 [Install]
36 WantedBy=graphical.target