busybox: var-log-debug.service: start before systemd-journal-flush.service

This commit is contained in:
Stefan Saraev 2013-10-08 18:39:23 +03:00
parent d8940c9ed4
commit 2c835f85fd

View File

@ -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]