unit
unit copied to clipboard
Broken stdout and stderr logging in Amazon Linux
Systemd unit in package unit-1.32.0-1.amzn2023.ngx.x86_64.rpm contains this line: /usr/sbin/unitd $UNITD_OPTIONS --no-daemon which renders stdout and stderr options of /config/applications/* objects useless, according to this line in the documentation:
When running in --no-daemon mode, application output is always redirected to Unit’s log file.
For the record, --no-daemon was introduced in https://github.com/nginx/unit/pull/212
I'm not sure if we want to change this to daemonization; or rather provide documentation on how to edit the service file to override the ExecStart= line.
We do run unit on debian with daemonization, so this only applies to rpm-based distros.
Thoughts?
So I guess that's at least +2 for moving back to daemon/forking. I'll prepare a PR with the changes, if noone objects.
Also interested.