lxcfs/0016-remove-lxcfs-tools-dependency-for-common-use.patch

33 lines
1.1 KiB
Diff
Raw Normal View History

From 93a91769aaece5bcdac817443e31cd0a15a0952a Mon Sep 17 00:00:00 2001
From: zhangsong234 <zhangsong34@huawei.com>
Date: Tue, 30 Mar 2021 15:14:24 +0800
Subject: [PATCH] remove lxcfs-tools dependency for common use
Signed-off-by: zhangsong234 <zhangsong34@huawei.com>
---
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
--
1.8.3.1