-
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.
gluster-block: add logrotate support
Signed-off-by: Xiubo Li <[email protected]> Reviewed-by: Prasanna Kumar Kalever <[email protected]> Tested-by: Prasanna Kumar Kalever <[email protected]>
- Loading branch information
Showing
5 changed files
with
36 additions
and
10 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
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