Other: Don't forward stdin/stdout/stderr

This commit is contained in:
James Houlahan
2022-11-22 14:04:13 +01:00
committed by Leander Beernaert
parent 6bd8c6ceb6
commit 7cb9d62f0c
3 changed files with 8 additions and 5 deletions

View File

@ -23,6 +23,8 @@ package restarter
import (
"os/exec"
"syscall"
"github.com/sirupsen/logrus"
)
func run(cmd *exec.Cmd) error {
@ -31,5 +33,8 @@ func run(cmd *exec.Cmd) error {
Setpgid: true,
Pgid: 0,
}
logrus.WithField("cmd", cmd).Info("Starting new process")
return cmd.Start()
}