pcp/add-ExecStartPost-option-to-pmwebd-service.patch

25 lines
717 B
Diff

From 9d04579d74866bfa9022f4f17291be4b807bb218 Mon Sep 17 00:00:00 2001
From: wk333 <13474090681@163.com>
Date: Thu, 16 Feb 2023 16:02:59 +0800
Subject: [PATCH 1/1] add ExecStartPost option to pmwebd.service
---
src/pmwebd/pmwebd.service.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/pmwebd/pmwebd.service.in b/src/pmwebd/pmwebd.service.in
index 4f0c44c..5dc462e 100644
--- a/src/pmwebd/pmwebd.service.in
+++ b/src/pmwebd/pmwebd.service.in
@@ -8,6 +8,7 @@ After=network-online.target avahi-daemon.service pmcd.service
Type=forking
Restart=always
ExecStart=@PCP_RC_DIR@/pmwebd start
+ExecStartPost=/usr/bin/sleep 0.1
ExecStop=@PCP_RC_DIR@/pmwebd stop
PIDFile=@PCP_RUN_DIR@/pmwebd.pid
--
2.27.0