add optional /storage/.cache/debug.openelec to enable debugging

This commit is contained in:
Stefan Saraev 2013-08-30 20:35:24 +03:00
parent 7ff967635b
commit baf8b197dc
4 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,7 @@
[Unit] [Unit]
Description=XBMC clean debug logs Description=XBMC clean debug logs
ConditionKernelCommandLine=!debugging ConditionKernelCommandLine=!debugging
ConditionPathExists=!/storage/.cache/debug.openelec
Before=xbmc.service Before=xbmc.service
[Service] [Service]

View File

@ -1,7 +1,8 @@
[Unit] [Unit]
Description=Debug Shell Description=Debug Shell
ConditionKernelCommandLine=debugging ConditionKernelCommandLine=|debugging
ConditionPathExists=|/storage/.cache/debug.openelec
[Service] [Service]
Environment=TTY=3 Environment=TTY=3

View File

@ -3,8 +3,9 @@ Description=Debug /var/log relink
DefaultDependencies=false DefaultDependencies=false
After=systemd-tmpfiles-setup.service var.mount After=systemd-tmpfiles-setup.service var.mount
ConditionKernelCommandLine=debugging
ConditionKernelCommandLine=!installer ConditionKernelCommandLine=!installer
ConditionKernelCommandLine=|debugging
ConditionPathExists=|/storage/.cache/debug.openelec
[Service] [Service]
Type=oneshot Type=oneshot

View File

@ -4,7 +4,8 @@ DefaultDependencies=no
Before=local-fs.target shutdown.target Before=local-fs.target shutdown.target
Conflicts=shutdown.target Conflicts=shutdown.target
ConditionKernelCommandLine=debugging ConditionKernelCommandLine=|debugging
ConditionPathExists=|/storage/.cache/debug.openelec
[Service] [Service]
Type=oneshot Type=oneshot