[debian] #1027463: logrotate script should filter out warnings stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 21 Jun 2010 10:00:05 +0200
branchstable
changeset 5806 9ef0e95f4d2b
parent 5805 560cde8a4f9f
child 5807 904897d79f86
[debian] #1027463: logrotate script should filter out warnings
debian/cubicweb-ctl.logrotate
--- a/debian/cubicweb-ctl.logrotate	Mon Jun 21 09:36:40 2010 +0200
+++ b/debian/cubicweb-ctl.logrotate	Mon Jun 21 10:00:05 2010 +0200
@@ -9,9 +9,9 @@
         sharedscripts
         postrotate
            if [ -x /usr/sbin/invoke-rc.d ]; then \
-              invoke-rc.d cubicweb reload > /dev/null; \
+              invoke-rc.d cubicweb reload > /dev/null 2> &1; \
            else \
-              /etc/init.d/cubicweb reload > /dev/null; \
+              /etc/init.d/cubicweb reload > /dev/null 2> &1; \
            fi; \
         endscript
 }