Skip to content

Commit

Permalink
use consistent path for localkube.service
Browse files Browse the repository at this point in the history
/usr/lib/systemd/system is not consistent across different distribution
/etc/systemd/system should be used.

See issue: #2098
  • Loading branch information
Yisui Hu authored and dlorenc committed Oct 20, 2017
1 parent d9089c3 commit ea31492
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions pkg/drivers/none/none.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package none
import (
"bytes"
"fmt"
"os"
"os/exec"
"strings"

Expand Down Expand Up @@ -150,9 +149,6 @@ func (d *Driver) Restart() error {
}

func (d *Driver) Start() error {
if err := os.MkdirAll("/usr/lib/systemd/system/", os.FileMode(0755)); err != nil {
return err
}
d.IPAddress = "127.0.0.1"
d.URL = "127.0.0.1:8080"
return nil
Expand Down
2 changes: 1 addition & 1 deletion pkg/minikube/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const (
)

const (
LocalkubeServicePath = "/usr/lib/systemd/system/localkube.service"
LocalkubeServicePath = "/etc/systemd/system/localkube.service"
LocalkubeRunning = "active"
LocalkubeStopped = "inactive"
)
Expand Down

0 comments on commit ea31492

Please sign in to comment.