Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Commit

Permalink
add logrotate config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Seto (jseto) committed Apr 12, 2018
1 parent 0d4aede commit 65329b9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dist/DellEMC-ScaleIO-flexvolume.spec
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ License: ASL 2.0
# global settings
%global flexdir /usr/libexec/kubernetes/kubelet-plugins/volume/exec
%global instdir /opt/emc/scaleio/flexvolume
%global logrotatedir /etc/logrotate.d
%global bindir %{instdir}/bin
%global cfgdir %{instdir}/cfg

Expand All @@ -27,10 +28,12 @@ FlexVolume driver for ScaleIO
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{bindir}
install -d $RPM_BUILD_ROOT%{cfgdir}
install -d $RPM_BUILD_ROOT%{logrotatedir}
install -m 0666 LICENSE $RPM_BUILD_ROOT%{instdir}
install -m 0755 get-token.sh $RPM_BUILD_ROOT%{bindir}
install -m 0755 cfg/config.sample $RPM_BUILD_ROOT%{cfgdir}
install -m 0444 changes $RPM_BUILD_ROOT%{instdir}
install -m 0644 logrotate.d/DellEMC-ScaleIO-flexvolume $RPM_BUILD_ROOT%{logrotatedir}
for d in %{drivers}; do
install -d $RPM_BUILD_ROOT%{flexdir}/dell~${d}
install -m 0755 ${d} $RPM_BUILD_ROOT%{bindir}
Expand Down Expand Up @@ -65,6 +68,7 @@ done
%{bindir}/scaleio-simple
%{bindir}/get-token.sh
%{cfgdir}/config.sample
%{logrotatedir}/DellEMC-ScaleIO-flexvolume
%dir %{flexdir}/dell~scaleio
%dir %{flexdir}/dell~scaleio-simple
%dir %{cfgdir}
Expand Down
9 changes: 9 additions & 0 deletions logrotate.d/DellEMC-ScaleIO-flexvolume
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/var/log/scaleio-flexvol.log {
missingok
notifempty
size 2M
dateext
compress
rotate 12
create 0600 root root
}

0 comments on commit 65329b9

Please sign in to comment.