Skip to content

references #106, on receiveding SIGUSR1, reopening log file to enable…#107

Merged
prashanthellina merged 2 commits intomasterfrom
feature-sighup
Jul 14, 2021
Merged

references #106, on receiveding SIGUSR1, reopening log file to enable…#107
prashanthellina merged 2 commits intomasterfrom
feature-sighup

Conversation

@prashanthellina
Copy link
Copy Markdown
Member

… external log rotation tools to work

This fix ensures that when an external log rotation tool such as logrotate renames the current log file, it can inform the basescript based process by sending a SIGUSR1 signal. Upon receipt, basescript will now close the currently open log file and reopen it. This ensures that newly written log lines after the file move don't continue to go into the renamed file but instead to a file with the original file name.

@prashanthellina
Copy link
Copy Markdown
Member Author

Please merge and release after your review.

@prashanthellina prashanthellina merged commit 562ff01 into master Jul 14, 2021
@prashanthellina prashanthellina deleted the feature-sighup branch July 14, 2021 18:25
@prashanthellina
Copy link
Copy Markdown
Member Author

Force merged as merge will get blocked for you even after review approval due to broken CI config. Please review and post comments if any and proceed with release.

Copy link
Copy Markdown
Contributor

@shivam05011996 shivam05011996 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@shivam05011996
Copy link
Copy Markdown
Contributor

Will make a release.

@ManishaBayya
Copy link
Copy Markdown
Contributor

Looks good to me.

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