[gnome-terminal/benzea/systemd-integration: 6/7] build: Stop terminal service together with graphical session



commit e8702aa27af001982d02093dc7c72373468733c6
Author: Benjamin Berg <bberg redhat com>
Date:   Tue Feb 4 13:28:22 2020 +0100

    build: Stop terminal service together with graphical session
    
    There is no point in gnome-terminal-server to survive the graphical
    session. It will generally die anyway because the connection to the
    display server is lost, but it does not hurt to make this explicit.
    
    Also add a stop timeout to ensure the server gets killed if it refuses
    to shut down.

 src/Makefile.am | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 4149852b..5fe006e8 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -162,11 +162,13 @@ org.gnome.Terminal.service: Makefile
 gnome-terminal-server.service: Makefile
        $(AM_V_GEN) ( echo "[Unit]"; \
                      echo "Description=GNOME Terminal Server"; \
+                     echo "PartOf=graphical-session.target"; \
                      echo "[Service]"; \
                      echo "Slice=apps-org.gnome.Terminal.slice"; \
                      echo "Type=dbus"; \
                      echo "BusName=org.gnome.Terminal"; \
-                     echo "ExecStart=${libexecdir}/gnome-terminal-server") > $@
+                     echo "ExecStart=${libexecdir}/gnome-terminal-server"; \
+                     echo "TimeoutStopSec=5s") > $@
 
 defaults.conf: Makefile
        $(AM_V_GEN) ( echo "[Unit]"; \


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