[arch-commits] Commit in logrotate/trunk (logrotate.cron.daily)

Pierre Schmitz pierre at nymeria.archlinux.org
Sun Aug 25 07:07:14 UTC 2013


    Date: Sunday, August 25, 2013 @ 09:07:14
  Author: pierre
Revision: 193598

Fix FS#36318

Modified:
  logrotate/trunk/logrotate.cron.daily

----------------------+
 logrotate.cron.daily |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Modified: logrotate.cron.daily
===================================================================
--- logrotate.cron.daily	2013-08-25 03:50:30 UTC (rev 193597)
+++ logrotate.cron.daily	2013-08-25 07:07:14 UTC (rev 193598)
@@ -16,7 +16,11 @@
 fi
 
 if [ -x /usr/bin/ionice ]; then
-  CMD_LOGROTATE="/usr/bin/ionice -c ${IONICE_CLASS:-2} -n ${IONICE_PRIORITY:-7} ${CMD_LOGROTATE}"
+  IONICE_CMD="/usr/bin/ionice -c ${IONICE_CLASS:-2}"
+  if [ $IONICE_CLASS -ne 3 ]; then
+    IONICE_CMD="${IONICE_CMD} -n ${IONICE_PRIORITY:-7}"
+  fi
+  CMD_LOGROTATE="${IONICE_CMD} ${CMD_LOGROTATE}"
 fi
 
 ${CMD_LOGROTATE}




More information about the arch-commits mailing list