From 04c55841409a238f8b12c15395006c5793b4a508 Mon Sep 17 00:00:00 2001 From: vegbir Date: Tue, 11 Jul 2023 08:41:53 +0000 Subject: [PATCH 01/16] systemd append:remove-lxcfs-tools-dependency-for-common-use Signed-off-by: vegbir --- config/init/systemd/lxcfs.service.in | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/config/init/systemd/lxcfs.service.in b/config/init/systemd/lxcfs.service.in index 8b43f5a..bae1d08 100644 --- a/config/init/systemd/lxcfs.service.in +++ b/config/init/systemd/lxcfs.service.in @@ -6,12 +6,16 @@ Documentation=man:lxcfs(1) [Service] OOMScoreAdjust=-1000 -ExecStart=/usr/bin/lxcfs {{LXCFSTARGETDIR}} +ExecStartPre=-/usr/local/bin/lxcfs-tools prestart +ExecStart=/usr/bin/lxcfs /var/lib/lxc/lxcfs/ +ExecStartPost=-/usr/local/bin/lxcfs-tools remount -a KillMode=process -Restart=on-failure -ExecStopPost=-/bin/fusermount -u {{LXCFSTARGETDIR}} +ExecStop=-/usr/local/bin/lxcfs-tools umount -a +ExecStopPost=-/bin/fusermount -u /var/lib/lxc/ Delegate=yes ExecReload=/bin/kill -USR1 $MAINPID +Restart=always +RestartSec=2s [Install] WantedBy=multi-user.target -- 2.41.0