mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
busybox: var-log-debug.service: start before systemd-journal-flush.service
This commit is contained in:
parent
d8940c9ed4
commit
2c835f85fd
@ -2,6 +2,7 @@
|
||||
Description=Debug /var/log relink
|
||||
DefaultDependencies=false
|
||||
After=systemd-tmpfiles-setup.service var.mount
|
||||
Before=systemd-journal-flush.service
|
||||
|
||||
ConditionKernelCommandLine=!installer
|
||||
ConditionKernelCommandLine=|debugging
|
||||
@ -10,7 +11,7 @@ ConditionPathExists=|/storage/.cache/debug.openelec
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStartPre=/bin/sh -c 'if [ ! -d /storage/log ]; then rm -rf /storage/log &>/dev/null; fi'
|
||||
ExecStart=/bin/sh -c 'rm -rf /var/log && mkdir -p /storage/log && ln -sf /storage/log /var/log && mkdir -p /var/log/journal'
|
||||
ExecStart=/bin/sh -c 'rm -rf /var/log && mkdir -p /storage/log/journal && ln -sf /storage/log /var/log'
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
|
Loading…
x
Reference in New Issue
Block a user