mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 14:37:59 +00:00
systemd/busybox: allow configuration of persistent logs and journal via settings addon
This commit is contained in:
parent
f02196c2b9
commit
cd1ecef50d
@ -1,9 +1,10 @@
|
||||
[Unit]
|
||||
Description=Create Persistent Log Directory on /storage
|
||||
Description=Create Persistent Log Directory on /storage and rotate large logs
|
||||
DefaultDependencies=no
|
||||
RequiresMountsFor=/storage
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/bin/mkdir -p /storage/.cache/log/journal
|
||||
ExecStart=/bin/mkdir -p /storage/.cache/log/journal /storage/.cache/journald.conf.d ; \
|
||||
/usr/bin/find /storage/.cache/log/ -maxdepth 1 -type f -size +512k ! -name '*.old' -exec mv {} {}.old \;
|
||||
|
@ -6,6 +6,7 @@ After=storage-log.service
|
||||
ConditionKernelCommandLine=!installer
|
||||
ConditionKernelCommandLine=|debugging
|
||||
ConditionPathExists=|/storage/.cache/debug.libreelec
|
||||
ConditionPathExists=|/storage/.cache/journald.conf.d/00_settings.conf
|
||||
|
||||
[Mount]
|
||||
What=/storage/.cache/log
|
||||
|
@ -250,6 +250,9 @@ post_makeinstall_target() {
|
||||
ln -sf /storage/.config/hwdb.d ${INSTALL}/etc/udev/hwdb.d
|
||||
safe_remove ${INSTALL}/etc/udev/rules.d
|
||||
ln -sf /storage/.config/udev.rules.d ${INSTALL}/etc/udev/rules.d
|
||||
|
||||
# journald
|
||||
ln -sf /storage/.cache/journald.conf.d ${INSTALL}/usr/lib/systemd/journald.conf.d
|
||||
}
|
||||
|
||||
post_install() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user