We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7cea76 commit 40a4e1dCopy full SHA for 40a4e1d
client/service_manager.go
@@ -101,15 +101,20 @@ func (s *ServiceManager) List() map[int]*exec.Cmd {
101
// Command executes the command
102
func (s *ServiceManager) Command() *exec.Cmd {
103
cmd := exec.Command(s.Cmd, s.Args...)
104
- cmd.Env = s.Env
+ env := os.Environ()
105
+ env = append(env, s.Env...)
106
+ cmd.Env = env
107
+
108
return cmd
109
}
110
111
// Start a Service and log its output.
112
func (s *ServiceManager) Start() *exec.Cmd {
113
log.Println("[DEBUG] starting service")
114
115
116
117
118
119
cmdReader, err := cmd.StdoutPipe()
120
if err != nil {
0 commit comments