lxcfs/0016-remove-lxcfs-tools-dependency-for-common-use.patch
vegbir 6ad912e044 update to 4.0.11
(cherry picked from commit 333138af7dd63430c46198dcb24abdcf5cc43b98)
2021-12-17 10:03:03 +08:00

32 lines
1.1 KiB
Diff

From 035571472fa6c5772cc6ac467cad7f8ffb9e1d8e Mon Sep 17 00:00:00 2001
From: yangjiaqi <yangjiaqi16@huawei.com>
Date: Thu, 25 Nov 2021 20:26:45 +0800
Subject: [PATCH 16/17] remove-lxcfs-tools-dependency-for-common-use
---
config/init/systemd/lxcfs.service.in | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/config/init/systemd/lxcfs.service.in b/config/init/systemd/lxcfs.service.in
index 3d763c6..bdaa2fa 100644
--- a/config/init/systemd/lxcfs.service.in
+++ b/config/init/systemd/lxcfs.service.in
@@ -5,11 +5,11 @@ Before=lxc.service
Documentation=man:lxcfs(1)
[Service]
-ExecStartPre=/usr/local/bin/lxcfs-tools prestart
+ExecStartPre=-/usr/local/bin/lxcfs-tools prestart
ExecStart=/usr/bin/lxcfs /var/lib/lxc/lxcfs/
-ExecStartPost=/usr/local/bin/lxcfs-tools remount -a
+ExecStartPost=-/usr/local/bin/lxcfs-tools remount -a
KillMode=process
-ExecStop=/usr/local/bin/lxcfs-tools umount -a
+ExecStop=-/usr/local/bin/lxcfs-tools umount -a
ExecStopPost=-/bin/fusermount -u /var/lib/lxc/
Delegate=yes
ExecReload=/bin/kill -USR1 $MAINPID
--
2.27.0