chiark / gitweb /
Fedora: don't ship [Install] sections; these are enabled in the system configuration.
[elogind.git] / units / fedora / prefdm.service
index 6fcd9752e37530e330eb7f6f90ad4334ec203522..78bf14c2a7ba125856f2e86a65a4bbe56f89162d 100644 (file)
@@ -7,10 +7,14 @@
 
 [Unit]
 Description=Display Manager
-Before=graphical.target
-After=basic.target syslog.target messagebus.service haldaemon.service
-Conflicts=shutdown.target
+After=syslog.target livesys-late.service
+
+# On Fedora gdm/X11 is on tty1. We explicitly cancel the getty here to
+# avoid any races around that.
+Conflicts=getty@tty1.service plymouth-quit.service
+After=getty@tty1.service plymouth-quit.service
 
 [Service]
 ExecStart=/etc/X11/prefdm -nodaemon
-Type=simple
+Restart=always
+RestartSec=0