File: 92_systemd_unit.patch

package info (click to toggle)
gdm3 49.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,056 kB
  • sloc: ansic: 31,633; sh: 1,590; xml: 539; makefile: 81
file content (38 lines) | stat: -rw-r--r-- 1,124 bytes parent folder | download
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
27
28
29
30
31
32
33
34
35
36
37
38
From: Debian GNOME Maintainers
 <pkg-gnome-maintainers@lists.alioth.debian.org>
Date: Sat, 10 May 2014 22:52:23 +0200
Subject: Configure systemd service for Debian

* Regenerate dconf defaults from source files before start or reload
* Use the right executable name for Debian
* Delay restarts a little

Authors: Josselin Mouette, Laurent Bigonville, Iain Lane
Last-Update: 2017-10-05
Origin: vendor, Debian
Forwarded: no
---
 data/gdm.service.in | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/data/gdm.service.in b/data/gdm.service.in
index 17e8a8d..1214c3f 100644
--- a/data/gdm.service.in
+++ b/data/gdm.service.in
@@ -20,12 +20,15 @@ After=rc-local.service plymouth-start.service systemd-user-sessions.service
 OnFailure=plymouth-quit.service
 
 [Service]
-ExecStart=${sbindir}/gdm
+ExecStartPre=/usr/share/gdm/generate-config
+ExecStart=${sbindir}/gdm3
 KillMode=mixed
 Restart=always
+RestartSec=1s
 IgnoreSIGPIPE=no
 BusName=org.gnome.DisplayManager
 EnvironmentFile=-${LANG_CONFIG_FILE}
+ExecReload=/usr/share/gdm/generate-config
 ExecReload=/bin/kill -SIGHUP $MAINPID
 KeyringMode=shared