瀏覽代碼

Removed unneeded postrotate support

pull/39/head
Nathan Huizinga 6 年之前
父節點
當前提交
e6d71736c8
共有 2 個檔案被更改,包括 1 行新增8 行删除
  1. +1
    -5
      log2ram
  2. +0
    -3
      log2ram.logrotate

+ 1
- 5
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

+ 0
- 3
log2ram.logrotate 查看文件

@@ -6,8 +6,5 @@
notifempty
delaycompress
compress
postrotate
log2ram rotate > /dev/null
endscript
}


Loading…
取消
儲存