[gnome-terminal/benzea/systemd-integration: 2/4] build: Group terminal processes into a slice



commit e4fd3221e1f1f40b738cbf6994bdb7873b1d6e72
Author: Benjamin Berg <bberg redhat com>
Date:   Tue Feb 4 13:10:09 2020 +0100

    build: Group terminal processes into a slice
    
    This effectively changes the cgroup hierarchy making all terminal window
    scope units and the main server unit be sibblings of
    apps-org.gnome.Terminal.slice rather than being in the root slice.
    
    Note that using the apps prefix with the reverse domain name has not yet
    been standardised on. But it is very likely that this will be the
    standard that everything will converge on in the future.

 src/Makefile.am | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 971ef632..4149852b 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -163,6 +163,7 @@ gnome-terminal-server.service: Makefile
        $(AM_V_GEN) ( echo "[Unit]"; \
                      echo "Description=GNOME Terminal Server"; \
                      echo "[Service]"; \
+                     echo "Slice=apps-org.gnome.Terminal.slice"; \
                      echo "Type=dbus"; \
                      echo "BusName=org.gnome.Terminal"; \
                      echo "ExecStart=${libexecdir}/gnome-terminal-server") > $@
@@ -171,6 +172,7 @@ defaults.conf: Makefile
        $(AM_V_GEN) ( echo "[Unit]"; \
                      echo "CollectMode=inactive-or-failed"; \
                      echo "[Scope]"; \
+                     echo "Slice=apps-org.gnome.Terminal.slice"; \
                      echo "KillMode=process"; \
                      echo "TimeoutStopSec=5s") > $@
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]