lxcfs: fix reinstall bug

Signed-off-by: zhangsong234 <zhangsong34@huawei.com>
(cherry picked from commit 6ac00237f784e5778ab0cbf6e4385e0ed30c6296)
This commit is contained in:
zhangsong234 2020-11-30 21:46:04 +08:00 committed by openeuler-sync-bot
parent 7e3ebcd284
commit 9538fa0b7c
2 changed files with 5 additions and 2 deletions

View File

@ -14,7 +14,7 @@ index 9cd4e59..2421a54 100644
-Restart=on-failure
-ExecStopPost=-/bin/fusermount -u @LXCFSTARGETDIR@
+ExecStop=/usr/local/bin/lxcfs-tools umount -a
+ExecStopPost=--/bin/fusermount -u /var/lib/lxc/
+ExecStopPost=-/bin/fusermount -u /var/lib/lxc/
Delegate=yes
ExecReload=/bin/kill -USR1 $MAINPID
+Restart=always

View File

@ -4,7 +4,7 @@
#Basic Information
Name: lxcfs
Version: 4.0.5
Release: 3
Release: 2
Summary: FUSE filesystem for LXC
License: Apache-2.0
URL: http://linuxcontainers.org
@ -84,6 +84,9 @@ fi
%{_unitdir}/*
%changelog
* Mon Nov 30 2020 openEuler Buildteam <buildteam@openeuler.org> - 4.0.5-2
- fix reinstall bug
* Fri Aug 28 2020 openEuler Buildteam <buildteam@openeuler.org> - 4.0.5-1
- update to 4.0.5