|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From 2355af60dc0c0ec2b7fbe69f15a77d980b017b3f Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From: Tom Gundersen <teg@jklm.no>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Date: Sat, 4 Oct 2014 13:10:41 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Subject: [PATCH] consoled: add a unit file
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
The unit file is statically enabled, but still requires --enable-terminal
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
to actually get installed.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Makefile.am | 11 +++++++++++
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
units/user/.gitignore | 1 +
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
units/user/systemd-consoled.service.in | 15 +++++++++++++++
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
3 files changed, 27 insertions(+)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
create mode 100644 units/user/systemd-consoled.service.in
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/Makefile.am b/Makefile.am
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index 3119a95dad..e52db1793b 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/Makefile.am
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/Makefile.am
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -250,6 +250,7 @@ SOCKETS_TARGET_WANTS =
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
BUSNAMES_TARGET_WANTS =
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
TIMERS_TARGET_WANTS =
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
USER_SOCKETS_TARGET_WANTS =
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+USER_DEFAULT_TARGET_WANTS =
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
USER_BUSNAMES_TARGET_WANTS =
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
SYSTEM_UNIT_ALIASES =
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -270,6 +271,7 @@ install-target-wants-hook:
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
install-busnames-target-wants-hook:
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -3035,6 +3037,15 @@ noinst_PROGRAMS += \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
dist_pkgdata_DATA += \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
src/libsystemd-terminal/unifont-glyph-array.bin
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+nodist_userunit_DATA += \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ units/user/systemd-consoled.service
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+USER_DEFAULT_TARGET_WANTS += \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ systemd-consoled.service
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+EXTRA_DIST += \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ units/user/systemd-consoled.service.in
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
tests += \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
test-term-page \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
test-term-parser \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/units/user/.gitignore b/units/user/.gitignore
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index 6aa54754cb..c91ed626c8 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/units/user/.gitignore
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/units/user/.gitignore
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -1,2 +1,3 @@
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
/systemd-exit.service
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
/systemd-bus-proxyd@.service
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+/systemd-consoled.service
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/units/user/systemd-consoled.service.in b/units/user/systemd-consoled.service.in
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
new file mode 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index 0000000000..fd7938aa8b
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- /dev/null
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/units/user/systemd-consoled.service.in
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -0,0 +1,15 @@
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+# This file is part of systemd.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+#
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+# systemd is free software; you can redistribute it and/or modify it
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+# under the terms of the GNU Lesser General Public License as published by
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+# the Free Software Foundation; either version 2.1 of the License, or
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+# (at your option) any later version.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+[Unit]
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+Description=Console Manager and Terminal Emulator
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+[Service]
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+Type=notify
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+Restart=always
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+RestartSec=0
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ExecStart=@rootlibexecdir@/systemd-consoled
|