-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #163 from lxbsz/logrotate
gluster-block: add logrotate support
- Loading branch information
Showing
13 changed files
with
95 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Rotate all the gluster-block logs | ||
/var/log/gluster-block/*.log { | ||
sharedscripts | ||
weekly | ||
maxsize 10M | ||
minsize 100k | ||
|
||
# 6 months of logs are good enough | ||
rotate 26 | ||
|
||
missingok | ||
compress | ||
delaycompress | ||
notifempty | ||
postrotate | ||
killall -q -s 1 gluster-blockd > /dev/null 2>&1 || true | ||
endscript | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,13 +82,17 @@ rm -rf ${RPM_BUILD_ROOT} | |
%attr(0755,-,-) %{_initddir}/gluster-blockd | ||
%endif | ||
%config(noreplace) %{_sysconfdir}/sysconfig/gluster-blockd | ||
%config(noreplace) %{_sysconfdir}/logrotate.d/gluster-block | ||
%dir %attr(0755,-,-) %{_libexecdir}/gluster-block | ||
%attr(0755,-,-) %{_libexecdir}/gluster-block/wait-for-bricks.sh | ||
%attr(0755,-,-) %{_libexecdir}/gluster-block/upgrade_activities.sh | ||
%dir %attr(0755,-,-) %{_sharedstatedir}/gluster-block | ||
%attr(0644,-,-) %{_sharedstatedir}/gluster-block/gluster-block-caps.info | ||
|
||
%changelog | ||
* Sun Apr 3 2019 Xiubo Li <[email protected]> | ||
- Add logrotate support | ||
|
||
* Sun Oct 14 2018 Prasanna Kumar Kalever <[email protected]> | ||
- add install details for upgrade_activities.sh | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters