summaryrefslogtreecommitdiff
path: root/monitor/gphoto2/gvfs-gphoto2-volume-monitor.service.in
diff options
context:
space:
mode:
authorHenri Chain <henri.chain@enioka.com>2021-09-27 16:14:35 +0200
committerOndrej Holy <oholy@redhat.com>2021-10-01 14:13:35 +0000
commita2f451349d83aa16ba3269785d2b07910746640e (patch)
treeab6b510ae7735d7a1950d65274a32395a7490fce /monitor/gphoto2/gvfs-gphoto2-volume-monitor.service.in
parent8c47e9f15b0245accd7a0a885a6e63fb79eeb09f (diff)
downloadgvfs-a2f451349d83aa16ba3269785d2b07910746640e.tar.gz
Add PartOf= to all systemd units
The `PartOf` directive sets up a one-way dependency between `graphical-session.target` and our services, so that when `graphical-session.target` is stopped or restarted, our services also get stopped or restarted. This ensures that gvfs daemons that were started in the context of a GUI login session (through dbus activation) do not continue to run after the user has logged out. See `systemd.unit(5)` for more info.
Diffstat (limited to 'monitor/gphoto2/gvfs-gphoto2-volume-monitor.service.in')
-rw-r--r--monitor/gphoto2/gvfs-gphoto2-volume-monitor.service.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/monitor/gphoto2/gvfs-gphoto2-volume-monitor.service.in b/monitor/gphoto2/gvfs-gphoto2-volume-monitor.service.in
index 2fb21be4..6e1e6043 100644
--- a/monitor/gphoto2/gvfs-gphoto2-volume-monitor.service.in
+++ b/monitor/gphoto2/gvfs-gphoto2-volume-monitor.service.in
@@ -1,5 +1,6 @@
[Unit]
Description=Virtual filesystem service - digital camera monitor
+PartOf=graphical-session.target
[Service]
ExecStart=@libexecdir@/gvfs-gphoto2-volume-monitor