mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
busybox: var-log-debug.service: start before systemd-journal-flush.service
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user