提交 df3395ce 编写于 作者: D dlorenc

Also declare that localkube depends on the network being active.

上级 391b9277
......@@ -40,6 +40,9 @@ var localkubeSystemdTmpl = `[Unit]
Description=Localkube
Documentation=https://github.com/kubernetes/minikube/tree/master/pkg/localkube
Wants=network-online.target
After=network-online.target
[Service]
Type=notify
Restart=always
......@@ -58,7 +61,7 @@ if which systemctl 2>&1 1>/dev/null; then
{{.StartCommandSystemd}}
sudo systemctl daemon-reload
sudo systemctl enable localkube.service
sudo systemctl restart localkube.service
sudo systemctl restart localkube.service || true
else
sudo killall localkube || true
{{.StartCommandB2D}}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册