summarylogtreecommitdiffstats
path: root/0002-Use-KillMode-process-so-systemd-doesn-t-stop-apps.patch
blob: 8206d517661a7cc0d6b26dbc84e3d009873dc588 (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
From ac6938fc6c4931dc9424bd0a1937a287f639b89b Mon Sep 17 00:00:00 2001
From: ArenM <aren@peacevolution.org>
Date: Sat, 23 Apr 2022 13:28:59 -0400
Subject: [PATCH sxmo-utils 2/6] Use KillMode=process so systemd doesn't stop
 apps

Systemd kills processes by cgroup, not session, so the setsid calls in
sxmo_hook_lisgdstart.sh don't prevent this.
---
 configs/services/sxmo_hook_lisgd.service | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configs/services/sxmo_hook_lisgd.service b/configs/services/sxmo_hook_lisgd.service
index 182d995..c671235 100644
--- a/configs/services/sxmo_hook_lisgd.service
+++ b/configs/services/sxmo_hook_lisgd.service
@@ -5,3 +5,4 @@ Description=run user defined lisgd start hook
 Type=simple
 Restart=always
 ExecStart=sh -c sxmo_hook_lisgdstart.sh
+KillMode=process
-- 
2.45.0