lxcfs/0011-systemd-stop.patch

12 lines
456 B
Diff
Raw Normal View History

2019-11-06 19:42:23 +08:00
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
2019-11-06 19:42:23 +08:00
KillMode=process
Restart=on-failure
+ExecStop=/usr/local/bin/lxcfs-tools umount -a
2019-11-06 19:42:23 +08:00
ExecStopPost=-/bin/fusermount -u /var/lib/lxc/
Delegate=yes