blob: 79b5f553631288b5fd23217607718549c3c8deb8 (
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=@plugin_restart@
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
|