var-log-debug: create persistent storage for journald in debug mode

This commit is contained in:
Stefan Saraev 2013-08-28 14:35:52 +03:00
parent f0f7c027c5
commit 8e09f70f83

View File

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