blob: 3ce80b402b8570adf942daaeccc2deb2293a8af0 (
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
27
28
29
30
31
32
33
34
35
|
From 8dea25b6aef3067c32ba912686e127b39e465570 Mon Sep 17 00:00:00 2001
From: ArenM <aren@peacevolution.org>
Date: Wed, 20 Apr 2022 20:37:03 -0400
Subject: [PATCH sxmo-utils 1/6] Use sh to resolve hooks in services
systemd uses a path configured at build time, so we need to use a shell
to launch hooks in order to find them correctly.
---
configs/services/sxmo_desktop_widget.service | 2 +-
configs/services/sxmo_hook_lisgd.service | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configs/services/sxmo_desktop_widget.service b/configs/services/sxmo_desktop_widget.service
index c161bb1..199d9a6 100644
--- a/configs/services/sxmo_desktop_widget.service
+++ b/configs/services/sxmo_desktop_widget.service
@@ -4,4 +4,4 @@ Description=Sxmo: start desktop widget (ie. clock)
[Service]
Type=simple
Restart=always
-ExecStart=sxmo_hook_desktop_widget.sh
+ExecStart=sh -c sxmo_hook_desktop_widget.sh
diff --git a/configs/services/sxmo_hook_lisgd.service b/configs/services/sxmo_hook_lisgd.service
index 202510c..182d995 100644
--- a/configs/services/sxmo_hook_lisgd.service
+++ b/configs/services/sxmo_hook_lisgd.service
@@ -4,4 +4,4 @@ Description=run user defined lisgd start hook
[Service]
Type=simple
Restart=always
-ExecStart=sxmo_hook_lisgdstart.sh
+ExecStart=sh -c sxmo_hook_lisgdstart.sh
--
2.45.0
|