From e6d71736c84aec12f599f40017b5ccc8d4405041 Mon Sep 17 00:00:00 2001 From: Nathan Huizinga Date: Fri, 29 Dec 2017 10:15:43 +0100 Subject: [PATCH] Removed unneeded postrotate support --- log2ram | 6 +----- log2ram.logrotate | 3 --- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/log2ram b/log2ram index dc56e2c..0e51f3d 100755 --- a/log2ram +++ b/log2ram @@ -51,10 +51,6 @@ wait_for () { } case "$1" in - rotate) - rm -f $LOG2RAM_LOG - ;; - start) [ -d $HDD_LOG/ ] || mkdir $HDD_LOG/ mount --bind $RAM_LOG/ $HDD_LOG/ @@ -76,7 +72,7 @@ case "$1" in ;; *) - echo "Usage: log2ram {clean-rotate|rotate|start|stop|write}" >&2 + echo "Usage: log2ram {start|stop|write}" >&2 exit 1 ;; esac diff --git a/log2ram.logrotate b/log2ram.logrotate index 3db6498..dbe9914 100644 --- a/log2ram.logrotate +++ b/log2ram.logrotate @@ -6,8 +6,5 @@ notifempty delaycompress compress - postrotate - log2ram rotate > /dev/null - endscript }