Fix dnsmasq logging to syslog as well as stderr
This commit is contained in:
parent
03b19df115
commit
4151fe8f17
@ -68,8 +68,15 @@ func dnsmasqPmuxProc(
|
||||
}
|
||||
|
||||
cfg := pmuxlib.ProcessConfig{
|
||||
Cmd: filepath.Join(binDirPath, "dnsmasq"),
|
||||
Args: []string{"-d", "-C", confPath},
|
||||
Cmd: filepath.Join(binDirPath, "dnsmasq"),
|
||||
Args: []string{
|
||||
// Don't daemonize. The docs say to use --keep-in-foreground in
|
||||
// production, and that this flag is for debugging only, but only
|
||||
// with this flag will sigint work as expected.
|
||||
"--no-daemon",
|
||||
"--log-facility=-", // Log only to stderr
|
||||
"-C", confPath,
|
||||
},
|
||||
}
|
||||
cfg = withPmuxLoggers(ctx, logger, "dnsmasq", cfg)
|
||||
|
||||
|
@ -1,8 +0,0 @@
|
||||
---
|
||||
type: task
|
||||
---
|
||||
|
||||
# Fix dnsmasq Logging Capture
|
||||
|
||||
The dnsmasq process's logging is not being captured into mlog, but instead is
|
||||
being written directly to stdout/stderr.
|
Loading…
Reference in New Issue
Block a user