2019-11-06 19:42:23 +08:00
|
|
|
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
|
2020-01-17 19:45:00 +08:00
|
|
|
@@ -9,10 +9,11 @@ ExecStartPre=/usr/local/bin/lxcfs-tools
|
2019-11-06 19:42:23 +08:00
|
|
|
ExecStart=/usr/bin/lxcfs /var/lib/lxc/lxcfs/
|
2020-01-17 19:45:00 +08:00
|
|
|
ExecStartPost=/usr/local/bin/lxcfs-tools remount -a
|
2019-11-06 19:42:23 +08:00
|
|
|
KillMode=process
|
|
|
|
|
-Restart=on-failure
|
2020-01-17 19:45:00 +08:00
|
|
|
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
|
|
|
|
|
+Restart=always
|
|
|
|
|
+RestartSec=2s
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|