diff --git a/packages/sysutils/systemd/system.d/debugconfig.service b/packages/sysutils/systemd/system.d/debugconfig.service index 10e945569f..ef048576cb 100644 --- a/packages/sysutils/systemd/system.d/debugconfig.service +++ b/packages/sysutils/systemd/system.d/debugconfig.service @@ -1,13 +1,14 @@ [Unit] Description=Setup debug config DefaultDependencies=no -After=local-fs.target systemd-tmpfiles-setup.service +Before=local-fs.target shutdown.target +Conflicts=shutdown.target ConditionKernelCommandLine=debugging [Service] Type=oneshot -ExecStart=/bin/sh -c 'cp /usr/share/debugconf/*.conf /run/openelec/debug' +ExecStart=/bin/sh -c 'mkdir -p /run/openelec/debug; cp /usr/share/debugconf/*.conf /run/openelec/debug' [Install] -WantedBy=sysinit.target +WantedBy=local-fs.target