From 658f5329efa6c3329bc640ac45ec2f351a9d0768 Mon Sep 17 00:00:00 2001 From: StuartIanNaylor Date: Wed, 10 Apr 2019 00:13:31 +0100 Subject: [PATCH] rsyslog & journalctl examples --- log2ram | 3 +++ 1 file changed, 3 insertions(+) diff --git a/log2ram b/log2ram index c80f583..00031ef 100755 --- a/log2ram +++ b/log2ram @@ -82,6 +82,7 @@ case "$1" in stop) syncToDisk + invoke-rc.d rsyslog stop umount -l $RAM_LOG/ umount -l $HDD_LOG/ if [ "$ZL2R" = true ]; then @@ -93,6 +94,8 @@ case "$1" in echo "$RAM_DEV" > /sys/class/zram-control/hot_remove fi fi + invoke-rc.d rsyslog restart + journalctl --flush ;; write)