From 035571472fa6c5772cc6ac467cad7f8ffb9e1d8e Mon Sep 17 00:00:00 2001 From: yangjiaqi 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