busybox: var-log-debug.service cosmetics

This commit is contained in:
Stephan Raue 2014-08-18 19:02:51 +03:00
parent 7c1fa5ed52
commit 9822f05a77

View File

@ -10,8 +10,9 @@ 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/journal && ln -sf /storage/log /var/log'
ExecStartPre=/bin/rm -rf /var/log
ExecStartPre=-/bin/mkdir -p /storage/log/journal
ExecStart=-/bin/ln -sf /storage/log /var/log
RemainAfterExit=yes
[Install]