Commit 85582c5b authored by Michael Stapelberg's avatar Michael Stapelberg

don’t try to start autovt units when not running with systemd as pid 1

Closes: #726466
parent b843c575
......@@ -12,6 +12,8 @@ systemd (204-6) UNRELEASED; urgency=low
* allow group adm read access on /var/log/journal (Closes: #717386)
* add systemd-journal group (Thanks Guido Günther) (Closes: #724668)
* copy /etc/localtime instead of symlinking (Closes: #726256)
* dont try to start autovt units when not running with systemd as pid 1
(Closes: #726466)
-- Tollef Fog Heen <tfheen@debian.org> Mon, 28 Oct 2013 14:31:16 +0100
......
......@@ -978,6 +978,11 @@ int manager_spawn_autovt(Manager *m, int vtnr) {
(unsigned) vtnr != m->reserve_vt)
return 0;
/* It only makes sense to send a StartUnit call to systemd if this
* machine is actually booted with systemd. */
if (!sd_booted())
return 0;
if ((unsigned) vtnr != m->reserve_vt) {
/* If this is the reserved TTY, we'll start the getty
* on it in any case, but otherwise only if it is not
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment