[gnome-online-accounts/wip/terminate-on-logout] data: Automatically terminate systemd services on GUI logout




commit b257bb17a765e1b097e8fe6bdd961b22ae442613
Author: Simon McVittie <smcv collabora com>
Date:   Thu Dec 3 12:25:38 2020 +0000

    data: Automatically terminate systemd services on GUI logout
    
    The gnome-online-accounts services are tied to gnome-keyring, which in
    turn is tied to the login session.
    
    Signed-off-by: Simon McVittie <smcv collabora com>

 data/goa-daemon.service.in           | 2 ++
 data/goa-identity-service.service.in | 2 ++
 2 files changed, 4 insertions(+)
---
diff --git a/data/goa-daemon.service.in b/data/goa-daemon.service.in
index c612656f..aabfee91 100644
--- a/data/goa-daemon.service.in
+++ b/data/goa-daemon.service.in
@@ -1,5 +1,7 @@
 [Unit]
 Description=GNOME Online Accounts service
+# Terminate automatically on logout from GUI session
+PartOf=graphical-session.target
 
 [Service]
 ExecStart=@libexecdir@/goa-daemon
diff --git a/data/goa-identity-service.service.in b/data/goa-identity-service.service.in
index 7bf8cf6c..d4855610 100644
--- a/data/goa-identity-service.service.in
+++ b/data/goa-identity-service.service.in
@@ -1,5 +1,7 @@
 [Unit]
 Description=GNOME identity service for Kerberos
+# Terminate automatically on logout from GUI session
+PartOf=graphical-session.target
 
 [Service]
 ExecStart=@libexecdir@/goa-identity-service


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