提交 903de1de 编写于 作者: D dlorenc 提交者: GitHub

Merge pull request #961 from dlorenc/enable

Add 'enable' to the systemd commands for localkube.
......@@ -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
......@@ -57,7 +60,8 @@ var startCommandTemplate = `
if which systemctl 2>&1 1>/dev/null; then
{{.StartCommandSystemd}}
sudo systemctl daemon-reload
sudo systemctl restart localkube.service
sudo systemctl enable 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.
先完成此消息的编辑!
想要评论请 注册