lxcfs/0011-systemd-stop.patch
zhangsong34 e757619e73 lxcfs: update package
Signed-off-by: zhangsong34 <zhangsong34@huawei.com>
2020-01-17 19:45:26 +08:00

12 lines
456 B
Diff

diff --git a/config/init/systemd/lxcfs.service b/config/init/systemd/lxcfs.service
index 534907d..3f104ad 100644
--- a/config/init/systemd/lxcfs.service
+++ b/config/init/systemd/lxcfs.service
@@ -10,6 +10,7 @@ ExecStart=/usr/bin/lxcfs /var/lib/lxc/lxcfs/
ExecStartPost=/usr/local/bin/lxcfs-tools remount -a
KillMode=process
Restart=on-failure
+ExecStop=/usr/local/bin/lxcfs-tools umount -a
ExecStopPost=-/bin/fusermount -u /var/lib/lxc/
Delegate=yes