Merge pull request #704 from ckeyer/fix_nginx_reload

fix nginx reload flags '-c'
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-05-17 07:44:54 -04:00 committed by GitHub
commit 49e490e5e5

View file

@ -247,7 +247,7 @@ func (n NGINXController) Reload(data []byte) ([]byte, bool, error) {
return nil, false, err
}
o, e := exec.Command(n.binary, "-s", "reload").CombinedOutput()
o, e := exec.Command(n.binary, "-s", "reload", "-c", cfgPath).CombinedOutput()
return o, true, e
}