N1 盒子刷的 armbian,/var/log 是块 zram 内存盘,可是重启后日志都在,请问这是什么配置导致的,如何查看。
1
hjc4869 2019-10-25 20:06:11 +08:00 via Android 1
真相在 /var/log.hdd
|
2
zjsxwc 2019-10-25 20:07:30 +08:00 via Android
保存在硬盘
|
4
owenliang OP @hjc4869 知道了
root@aml:~# cat /lib/systemd/system/armbian-ramlog.service # Armbian ramlog service # Stores logs in (compressed) memory # This service may block the boot process for up to 30 sec [Unit] Description=Armbian memory supported logging DefaultDependencies=no Before=rsyslog.service sysinit.target syslog.target After=armbian-zram-config.service Conflicts=shutdown.target RequiresMountsFor=/var/log /var/log.hdd IgnoreOnIsolate=yes [Service] Type=oneshot ExecStart=/usr/lib/armbian/armbian-ramlog start ExecStop=/usr/lib/armbian/armbian-ramlog stop ExecReload=/usr/lib/armbian/armbian-ramlog write RemainAfterExit=yes TimeoutStartSec=30sec [Install] WantedBy=sysinit.target |