unit icon indicating copy to clipboard operation
unit copied to clipboard

Broken stdout and stderr logging in Amazon Linux

Open thesame opened this issue 1 year ago • 4 comments

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.

thesame avatar Mar 07 '24 03:03 thesame

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?

thresheek avatar Mar 07 '24 03:03 thresheek

This has been discussed here, and my feeling on it is here.

ac000 avatar Mar 07 '24 04:03 ac000

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.

thresheek avatar Mar 07 '24 04:03 thresheek

Also interested.

BwL1289 avatar Apr 28 '24 16:04 BwL1289