service: go fmt

This commit is contained in:
Daniel Theophanes
2020-11-17 11:30:05 -06:00
parent 41add7e3c9
commit 18c957a3dc
4 changed files with 10 additions and 11 deletions
+2 -2
View File
@@ -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=
+2 -2
View File
@@ -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
@@ -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
}
-1
View File
@@ -162,7 +162,6 @@ func (s *darwinLaunchdService) Install() error {
SessionCreate bool
StandardOut bool
StandardError bool
}{
Config: s.Config,
Path: path,
+2 -2
View File
@@ -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
}
@@ -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
}