瀏覽代碼

Revert "Added start, write and stop logging"

This reverts commit 4479c11a41.
pull/37/head
Nathan Huizinga 7 年之前
父節點
當前提交
8e52dfe231
共有 1 個文件被更改,包括 0 次插入16 次删除
  1. +0
    -16
      log2ram

+ 0
- 16
log2ram 查看文件

@@ -56,36 +56,20 @@ case "$1" in
mount --bind $RAM_LOG/ $HDD_LOG/
mount --make-private $HDD_LOG/
wait_for $HDD_LOG

rm -f $LOG2RAM_LOG

mount -t tmpfs -o nosuid,noexec,nodev,mode=0755,size=$SIZE log2ram $RAM_LOG/
wait_for $RAM_LOG

echo "> Starting..." | $LOG_OUTPUT

syncFromDisk

echo "> Starting: done." | $LOG_OUTPUT
;;

stop)
echo "> Stopping..." | $LOG_OUTPUT

syncToDisk

echo "> Stopping: done." | $LOG_OUTPUT

umount -l $RAM_LOG/
umount -l $HDD_LOG/
;;

write)
echo "> Writing..." | $LOG_OUTPUT

syncToDisk

echo "> Writing: done." | $LOG_OUTPUT
;;

*)


Loading…
取消
儲存