According to the runsv
man page:
If the directory service/log exists, runsv creates a pipe, redirects service/run's and service/finish's standard output to the pipe, switches to the directory service/log and starts ./run script. The standard input of the log service is redirected to read from the pipe.
Obviously, runsv
only redirects service's standard output, but not standard
error output, to svlogd standard input. My question is: why? Of course I want
to log my unit's standard error output; why do I have to pay extra attention
to adding exec 2>&1
to the beginning of each unit file?
Cheers!
stdout
but notstderr
? Because that's what I'm interested in in the first place. – David Feb 28 '18 at 08:14