summaryrefslogtreecommitdiff
path: root/units/fedora/prefdm.service
diff options
context:
space:
mode:
Diffstat (limited to 'units/fedora/prefdm.service')
-rw-r--r--units/fedora/prefdm.service21
1 files changed, 21 insertions, 0 deletions
diff --git a/units/fedora/prefdm.service b/units/fedora/prefdm.service
new file mode 100644
index 000000000..77a0e9ad7
--- /dev/null
+++ b/units/fedora/prefdm.service
@@ -0,0 +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
+# (at your option) any later version.
+
+[Unit]
+Description=Display Manager
+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
+Restart=always
+RestartSec=0
+IgnoreSIGPIPE=no