summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server_config.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/server_config.go b/server_config.go
index df9b4cee..f4310000 100644
--- a/server_config.go
+++ b/server_config.go
@@ -8,6 +8,7 @@ import (
"strings"
"syscall"
"time"
+ "os"
)
// ServerConfig config combines factory, pool and cmd configurations.
@@ -47,7 +48,7 @@ func (cfg *ServerConfig) makeCommand() func() *exec.Cmd {
var cmd = strings.Split(cfg.Command, " ")
return func() *exec.Cmd {
cmd := exec.Command(cmd[0], cmd[1:]...)
- cmd.Env = cfg.env
+ cmd.Env = append(os.Environ(), cfg.env...)
return cmd
}