There's no need to signal running agents since they use
a WatchedFileHandler that detects rotation itself.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
%:
dh $@ --buildsystem python_distutils --with python2
+override_dh_installlogrotate:
+ cp logrotate.conf debian/radosgw-agent.logrotate
+ dh_installlogrotate
+
override_dh_installinit:
install -d -m0755 debian/radosgw-agent/etc/init
install -m0644 init-radosgw-agent debian/radosgw-agent/etc/init
--- /dev/null
+/var/log/ceph/radosgw-agent/*.log {
+ rotate 7
+ daily
+ compress
+ missingok
+}
%install
python setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
+install -m 0644 -D logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/radosgw-agent
%clean
rm -rf $RPM_BUILD_ROOT
%dir %{_sysconfdir}/ceph/radosgw-agent/
%dir %{_localstatedir}/log/ceph/radosgw-agent/
%dir %{_localstatedir}/run/ceph/radosgw-agent/
+%config(noreplace) %{_sysconfdir}/logrotate.d/radosgw-agent