mirror of
https://github.com/azlux/log2ram.git
synced 2023-10-10 13:37:24 +02:00
rsyslog & journalctl examples
This commit is contained in:
parent
8d2d03517f
commit
658f5329ef
3
log2ram
3
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user