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

Add the ability to change the program's logfile owner #1071

Closed
BillBrower opened this issue Mar 7, 2018 · 1 comment
Closed

Add the ability to change the program's logfile owner #1071

BillBrower opened this issue Mar 7, 2018 · 1 comment
Labels

Comments

@BillBrower
Copy link

The default is root so when the log gets rotated the new log file is owned by root instead of the user who is running the program and the program can no longer write to the log.

@mnaberez
Copy link
Member

mnaberez commented Mar 7, 2018

There's a very similar issue for this open in #123. Let's track this over there.

Note:

The default is root so when the log gets rotated the new log file is owned by root instead of the user who is running the program and the program can no longer write to the log.

  • The owner of the child log files is the user that supervisord is run as. That might be root but often is not. It depends on how the system has been configured.

  • The child process does not usually write to the child log files itself. supervisord captures the stdout and stderr of the child and writes that output to the child logs. The issue described above should only happen if processes are trying to write to these same log files outside of supervisord.

@mnaberez mnaberez closed this as completed Mar 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants