Skip to content

Commit

Permalink
service: go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kardianos committed Nov 17, 2020
1 parent 41add7e commit 18c957a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
golang.org/x/sys v0.0.0-20190204203706-41f3e6584952 h1:FDfvYgoVsA7TTZSbgiqjAbfPbK47CNHdWl3h/PJtii0=
golang.org/x/sys v0.0.0-20190204203706-41f3e6584952/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20201015000850-e3ed0017c211 h1:9UQO31fZ+0aKQOFldThf7BKPMJTiBfWycGh/u3UoO88=
golang.org/x/sys v0.0.0-20201015000850-e3ed0017c211/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
4 changes: 2 additions & 2 deletions service_aix.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func getPidOfSvcMaster() int {
cmd.Stdout = &out
pid := 0
if err := cmd.Run(); err == nil {
matches := pat.FindAllStringSubmatch(out.String(),-1)
matches := pat.FindAllStringSubmatch(out.String(), -1)
for _, match := range matches {
pid, _ = strconv.Atoi(match[1])
break
Expand Down Expand Up @@ -125,7 +125,7 @@ func (s *aixService) Install() error {
if err != nil {
return err
}
err = run("mkssys", "-s", s.Name, "-p", path, "-u", "0", "-R", "-Q", "-S", "-n", "15", "-f", "9", "-d", "-w", "30" )
err = run("mkssys", "-s", s.Name, "-p", path, "-u", "0", "-R", "-Q", "-S", "-n", "15", "-f", "9", "-d", "-w", "30")
if err != nil {
return err
}
Expand Down
5 changes: 2 additions & 3 deletions service_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,8 @@ func (s *darwinLaunchdService) Install() error {

KeepAlive, RunAtLoad bool
SessionCreate bool
StandardOut bool
StandardError bool

StandardOut bool
StandardError bool
}{
Config: s.Config,
Path: path,
Expand Down
8 changes: 4 additions & 4 deletions service_solaris.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ func (s *solarisService) Install() error {
}
var to = &struct {
*Config
Prefix string
Prefix string
Display string
Path string
Path string
}{
s.Config,
s.Prefix,
Expand All @@ -150,7 +150,7 @@ func (s *solarisService) Install() error {
}

// import service
err = run("svcadm", "restart", "manifest-import" )
err = run("svcadm", "restart", "manifest-import")
if err != nil {
return err
}
Expand All @@ -171,7 +171,7 @@ func (s *solarisService) Uninstall() error {
}

// unregister service
err = run("svcadm", "restart", "manifest-import" )
err = run("svcadm", "restart", "manifest-import")
if err != nil {
return err
}
Expand Down

0 comments on commit 18c957a

Please sign in to comment.