chiark / gitweb /
relicense to LGPLv2.1 (with exceptions)
[elogind.git] / units / fedora / prefdm.service
index 2f4333f3c07411c5320f6f37e2ef7bd3be17838b..51da6c77f1faa0a56f5e404b1b4a434a0bf7477a 100644 (file)
@@ -1,19 +1,21 @@
 #  This file is part of systemd.
 #
 #  systemd is free software; you can redistribute it and/or modify it
-#  under the terms of the GNU General Public License as published by
-#  the Free Software Foundation; either version 2 of the License, or
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
 #  (at your option) any later version.
 
 [Unit]
 Description=Display Manager
-Before=graphical.target
-Requires=basic.target
-After=basic.target syslog.target messagebus.service haldaemon.service
-Conflicts=shutdown.target
+After=livesys-late.service rc-local.service systemd-user-sessions.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
-
-[Install]
-Alias=display-manager.service
+Restart=always
+RestartSec=0
+IgnoreSIGPIPE=no