summaryrefslogtreecommitdiff
path: root/server_config.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-07-26 16:34:48 +0300
committerWolfy-J <[email protected]>2018-07-26 16:34:48 +0300
commit06429b2db7e592968035a677badbc69d7ee786c1 (patch)
tree9eb0284f62ac95fb64ad7900fa8529931c1cbcbe /server_config.go
parentbcef5b36bb50b2fecd4db4ca8e01640347300bea (diff)
- share system env as well
Diffstat (limited to 'server_config.go')
-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
}