summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-09-16 00:36:41 +0200
committerLennart Poettering <lennart@poettering.net>2010-09-16 00:36:41 +0200
commit97c4a07df982ee967705022feaba9be33947abf0 (patch)
treee4f47e0b68cc04695473b9b8aa0b17bb7f1511df /units
parent8e12a6aed3d99ac8c140cd56b560f5efeb1c4e1a (diff)
vconsole: add new utility to initialize the virtual console
Diffstat (limited to 'units')
-rw-r--r--units/.gitignore1
-rw-r--r--units/systemd-vconsole-setup.service.in20
2 files changed, 21 insertions, 0 deletions
diff --git a/units/.gitignore b/units/.gitignore
index a02b7f11e..816eeb3c1 100644
--- a/units/.gitignore
+++ b/units/.gitignore
@@ -2,6 +2,7 @@ serial-getty@.service
systemd-kmsg-syslogd.service
systemd-modules-load.service
systemd-remount-api-vfs.service
+systemd-vconsole-setup.service
systemd-auto-serial-getty.service
systemd-shutdownd.service
systemd-random-seed-load.service
diff --git a/units/systemd-vconsole-setup.service.in b/units/systemd-vconsole-setup.service.in
new file mode 100644
index 000000000..c113be578
--- /dev/null
+++ b/units/systemd-vconsole-setup.service.in
@@ -0,0 +1,20 @@
+# 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=Setup Virtual Console
+DefaultDependencies=no
+Conflicts=shutdown.target
+Before=shutdown.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=@rootlibexecdir@/systemd-vconsole-setup
+
+[Install]
+WantedBy=sysinit.target