mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-27 20:56:55 +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
|
Description=Debug /var/log relink
|
||||||
DefaultDependencies=false
|
DefaultDependencies=false
|
||||||
After=systemd-tmpfiles-setup.service var.mount
|
After=systemd-tmpfiles-setup.service var.mount
|
||||||
|
Before=systemd-journal-flush.service
|
||||||
|
|
||||||
ConditionKernelCommandLine=!installer
|
ConditionKernelCommandLine=!installer
|
||||||
ConditionKernelCommandLine=|debugging
|
ConditionKernelCommandLine=|debugging
|
||||||
@ -10,7 +11,7 @@ ConditionPathExists=|/storage/.cache/debug.openelec
|
|||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStartPre=/bin/sh -c 'if [ ! -d /storage/log ]; then rm -rf /storage/log &>/dev/null; fi'
|
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
|
RemainAfterExit=yes
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user