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

17 lines
611 B
Diff

diff -uprN a/config/init/systemd/lxcfs.service b/config/init/systemd/lxcfs.service
--- a/config/init/systemd/lxcfs.service 2019-01-07 17:15:47.596276242 +0800
+++ b/config/init/systemd/lxcfs.service 2019-01-07 17:17:32.206271142 +0800
@@ -9,10 +9,11 @@ ExecStartPre=/usr/local/bin/lxcfs-tools
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
+Restart=always
+RestartSec=2s
[Install]
WantedBy=multi-user.target