summaryrefslogtreecommitdiffstats
path: root/plugins/gsd.service.in
blob: c47a6768fdc7f6554f2a8ba9af76ccbf429019eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[Unit]
Description=@description@ service
CollectMode=inactive-or-failed
RefuseManualStart=true
RefuseManualStop=true

After=gnome-session-initialized.target

# Requisite/PartOf means the dependency is not loaded automatically.
# The ordering here also implies Before=gnome-session.target
Requisite=@plugin_dbus_name@.target
PartOf=@plugin_dbus_name@.target
Before=@plugin_dbus_name@.target

@plugin_gate_units_section@

[Service]
Slice=session.slice
Type=dbus
ExecStart=@libexecdir@/gsd-@plugin_name@
Restart=on-failure
BusName=@plugin_dbus_name@
TimeoutStopSec=5
# We cannot use OnFailure as e.g. dependency failures are normal
# https://github.com/systemd/systemd/issues/12352
ExecStopPost=@libexecdir@/gnome-session-ctl --exec-stop-check