Skip to content
This repository was archived by the owner on Jul 28, 2020. It is now read-only.

Commit a910682

Browse files
Andreas Voellmerxtreme-stevehiehn
authored andcommitted
Revert to powershell
Signed-off-by: Steve Hiehn <[email protected]>
1 parent 61a7d8c commit a910682

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

daemon/winsw_windows.go

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,18 +99,13 @@ func (w *WinSW) Stop(label string) error {
9999
fmt.Printf("DEBUG: %v IS RUNNING\n", label)
100100
_, executablePath = getServicePaths(label, w.ServicesDir)
101101

102-
//cmd := exec.Command(executablePath, "stop")
103-
//err := runCommand(cmd)
104-
//sc delete org.cloudfoundry.cfdev.vpnkit
105-
cmd := exec.Command("cmd", "/C", "sc", "delete", "org.cloudfoundry.cfdev.vpnkit")
106-
output, err := cmd.CombinedOutput()
107-
fmt.Printf("DEBUG: OUTPUT FROM %v sc delete: \n", output)
102+
cmd := exec.Command(executablePath, "stop")
103+
err := runCommand(cmd)
108104
if err != nil {
109105
return err
110106
}
111-
112107
fmt.Printf("DEBUG: %v SHOULD HAVE STOPPED\n", executablePath)
113-
time.Sleep(2 * time.Second)
108+
time.Sleep(4 * time.Second)
114109
running, _ = w.IsRunning(label)
115110
}
116111
return nil

0 commit comments

Comments
 (0)