From: Lennart Poettering Date: Tue, 28 Jun 2011 16:16:00 +0000 (+0200) Subject: logind: activate autovt@.service instead of autovt-getty@.service when the user switc... X-Git-Tag: v30~122 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd9e5d0a7697b3ccbc4dcb04444e6b42f5d309d1;p=systemd logind: activate autovt@.service instead of autovt-getty@.service when the user switches to a previously unused tty, since it doesn't have to be a getty we start on it on demand --- diff --git a/Makefile.am b/Makefile.am index 41077874..d110f313 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1514,14 +1514,14 @@ endif $(LN_S) graphical.target runlevel5.target && \ $(LN_S) reboot.target runlevel6.target ) ( cd $(DESTDIR)$(systemunitdir) && \ - rm -f default.target ctrl-alt-del.target dbus-org.freedesktop.hostname1.service dbus-org.freedesktop.locale1.service dbus-org.freedesktop.timedate1.service dbus-org.freedesktop.login1.service autovt-getty@.service && \ + rm -f default.target ctrl-alt-del.target dbus-org.freedesktop.hostname1.service dbus-org.freedesktop.locale1.service dbus-org.freedesktop.timedate1.service dbus-org.freedesktop.login1.service autovt@.service && \ $(LN_S) graphical.target default.target && \ $(LN_S) reboot.target ctrl-alt-del.target && \ $(LN_S) systemd-hostnamed.service dbus-org.freedesktop.hostname1.service && \ $(LN_S) systemd-localed.service dbus-org.freedesktop.locale1.service && \ $(LN_S) systemd-timedated.service dbus-org.freedesktop.timedate1.service && \ $(LN_S) systemd-logind.service dbus-org.freedesktop.login1.service && \ - $(LN_S) getty@.service autovt-getty@.service ) + $(LN_S) getty@.service autovt@.service ) ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \ rm -f getty.target systemd-user-sessions.service systemd-ask-password-wall.path systemd-logind.service && \ $(LN_S) ../getty.target getty.target && \ diff --git a/src/logind.c b/src/logind.c index 8fa76612..a0a89c06 100644 --- a/src/logind.c +++ b/src/logind.c @@ -729,7 +729,7 @@ int manager_spawn_autovt(Manager *m, int vtnr) { goto finish; } - if (asprintf(&name, "autovt-getty@tty%i.service", vtnr) < 0) { + if (asprintf(&name, "autovt@tty%i.service", vtnr) < 0) { log_error("Could not allocate service name."); r = -ENOMEM; goto finish;