@emie
To restart the minikube service using systemd, you can follow these steps:
Now you can restart the minikube service at any time by running:
1
|
sudo systemctl restart minikube.service |
@emie
To restart the minikube service using systemd, follow these steps:
1
|
sudo nano /etc/systemd/system/minikube.service |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
[Unit] Description=Minikube Service After=docker.service [Service] Type=oneshot ExecStart=/usr/local/bin/minikube start ExecStop=/usr/local/bin/minikube stop TimeoutSec=0 RemainAfterExit=yes [Install] WantedBy=multi-user.target |
Ensure to replace /usr/local/bin/minikube
with the correct path to the minikube executable in your system.
1
|
sudo systemctl daemon-reload |
1
|
sudo systemctl enable minikube |
1
|
sudo systemctl start minikube |
Now, you can restart the minikube service at any time using the following command:
1
|
sudo systemctl restart minikube |