Browse Source

rsyslog & journalctl examples

pull/76/head
StuartIanNaylor 5 years ago
parent
commit
658f5329ef
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      log2ram

+ 3
- 0
log2ram View File

@@ -82,6 +82,7 @@ case "$1" in


stop) stop)
syncToDisk syncToDisk
invoke-rc.d rsyslog stop
umount -l $RAM_LOG/ umount -l $RAM_LOG/
umount -l $HDD_LOG/ umount -l $HDD_LOG/
if [ "$ZL2R" = true ]; then if [ "$ZL2R" = true ]; then
@@ -93,6 +94,8 @@ case "$1" in
echo "$RAM_DEV" > /sys/class/zram-control/hot_remove echo "$RAM_DEV" > /sys/class/zram-control/hot_remove
fi fi
fi fi
invoke-rc.d rsyslog restart
journalctl --flush
;; ;;


write) write)


Loading…
Cancel
Save