30 lines
897 B
Diff
30 lines
897 B
Diff
From 6f7b8340fa9e8e1ca8d6b0a27a5b1c9a27cf4a85 Mon Sep 17 00:00:00 2001
|
|
From: panxiaohe <panxh.life@foxmail.com>
|
|
Date: Thu, 4 Aug 2022 17:01:38 +0800
|
|
Subject: [PATCH] add ExecStartPost option to restorecond.service
|
|
|
|
Add ExecStartPost option to restorecond.service in order not
|
|
to display the following message when starting restorecond.
|
|
"Can't open PID file /run/restorecond.pid (yet?) after start:
|
|
No such file or directory"
|
|
|
|
---
|
|
restorecond-3.1/restorecond.service | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/restorecond-3.1/restorecond.service b/restorecond-3.1/restorecond.service
|
|
index 0e4ea72..b3a8693 100644
|
|
--- a/restorecond-3.1/restorecond.service
|
|
+++ b/restorecond-3.1/restorecond.service
|
|
@@ -7,6 +7,7 @@ ConditionSecurity=selinux
|
|
[Service]
|
|
Type=forking
|
|
ExecStart=/usr/sbin/restorecond
|
|
+ExecStartPost=/usr/bin/sleep 0.1
|
|
PIDFile=/run/restorecond.pid
|
|
|
|
[Install]
|
|
--
|
|
2.27.0
|
|
|