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

Set $HOME for logrotate script #561

Closed
wants to merge 1 commit into from

Conversation

nisbet-hubbard
Copy link

When executing from cron, the HOME term environment variable will be blank. Meaning: /usr/bin/mysqladmin won’t be able to find the file with the access credentials (user and password) and thus cannot execute the “flush-logs” command.

See: https://www.percona.com/blog/log-rotate-and-the-deleted-mysql-log-file-mystery/

This error is mostly invisible unless one looks at logrotate’s own log since the mysqld.log gets rotated even when flush-logs fails.

@nisbet-hubbard
Copy link
Author

I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

@mysql-oca-bot
Copy link

Hi, thank you for submitting this pull request. In order to consider your code we need you to sign the Oracle Contribution Agreement (OCA). Please review the details and follow the instructions at https://oca.opensource.oracle.com/
Please make sure to include your MySQL bug system user (email) in the returned form.
Thanks

@nisbet-hubbard
Copy link
Author

I'm in communication with your open source team about a private sign-off. If that proves to be not possible, please feel free to fix this bug without me.

@mysql-admin
Copy link

@nisbet-hubbard we are still not clear about the state of your OCA and who your in discussion with.
You can email me with details at [email protected]

Thanks
==Omer

@mysql-oca-bot
Copy link

Hi, there was no response to our request to sign an OCA or confirm the code is submitted under the terms of the OCA. As such this request will be closed.
Thanks

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

Successfully merging this pull request may close these issues.

3 participants