xbmc: rework debugconfig service files

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-08-18 14:39:27 +02:00
parent e8ae1050d0
commit 398a33d9d2
3 changed files with 5 additions and 7 deletions

View File

@ -0,0 +1 @@
XBMC_DEBUG="--debug"

View File

@ -27,8 +27,4 @@ else
XBMC_ARGS="--lircdev /var/run/lirc/lircd"
fi
if [ "$DEBUG" = yes ]; then
XBMC_ARGS="$XBMC_ARGS --debug"
fi
echo "XBMC_ARGS=\"$XBMC_ARGS\"" > /run/xbmc/xbmc.conf
echo "XBMC_ARGS=\"$XBMC_ARGS\"" > /run/openelec/xbmc.conf

View File

@ -7,8 +7,9 @@ Requires=graphical.target
Environment=DISPLAY=:0.0
Environment=SDL_MOUSE_RELATIVE=0
Environment=HOME=/storage
EnvironmentFile=-/run/xbmc/xbmc.conf
ExecStart=/usr/lib/xbmc/xbmc.bin --standalone -fs $XBMC_ARGS
EnvironmentFile=-/run/openelec/xbmc.conf
EnvironmentFile=-/run/openelec/debug/xbmc.conf
ExecStart=/usr/lib/xbmc/xbmc.bin --standalone -fs $XBMC_ARGS $XBMC_DEBUG
KillMode=process
Restart=always