View file File name : display-manager.service Content :[Unit] Description=GNOME Display Manager # replaces the getty Conflicts=getty@tty1.service After=getty@tty1.service # replaces plymouth-quit since it quits plymouth on its own Conflicts=plymouth-quit.service After=plymouth-quit.service # Needs all the dependencies of the services it's replacing # pulled from getty@.service and plymouth-quit.service # (except for plymouth-quit-wait.service since it waits until # plymouth is quit, which we do) After=rc-local.service plymouth-start.service systemd-user-sessions.service # GDM takes responsibility for stopping plymouth, so if it fails # for any reason, make sure plymouth still stops OnFailure=plymouth-quit.service [Service] ExecStart=/usr/sbin/gdm ExecStopPost=-/usr/bin/bash -c 'for f in /run/systemd/sessions/*; do [ -f $f ] && /usr/bin/fgrep -q SERVICE=gdm $f && loginctl terminate-session $(basename $f); done' KillMode=mixed Restart=always IgnoreSIGPIPE=no BusName=org.gnome.DisplayManager EnvironmentFile=-/etc/locale.conf ExecReload=/bin/kill -SIGHUP $MAINPID KeyringMode=shared [Install] Alias=display-manager.service