Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node.js stdout/stderr stops being logged to nginx error.log after logrotate #1450

Closed
NeoPhi opened this issue Mar 23, 2015 · 2 comments
Closed

Comments

@NeoPhi
Copy link

NeoPhi commented Mar 23, 2015

We have a daily logrotation configuration that sends a kill -USR1 to nginx after rotating the log files. If a node.js application is logging to stdout or stderr messages are not written to the new log file unless nginx is restarted.

@FooBarWidget
Copy link
Member

That's because sending SIGUSR1 to Nginx only makes Nginx reopen it logs. You also need to tell Passenger to reopen the logs. You can do that by running passenger-config reopen-logs.

@NeoPhi
Copy link
Author

NeoPhi commented Mar 23, 2015

Thank you, I missed that in the release notes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants