Files
LibreELEC.tv/packages/mediacenter/xbmc/system.d/xbmc.service
Stefan Saraev f00a7d3ba2 xbmc: 5 seconds to exit. no more
5 seconds should be enough to store settings, if
pvrmanager / random addon / service is not yet stopped, we dont care
2014-03-11 15:46:31 +02:00

22 lines
566 B
Desktop File

[Unit]
Description=XBMC Media Center
After=graphical.target
Requires=graphical.target
[Service]
Environment=DISPLAY=:0.0
Environment=SDL_MOUSE_RELATIVE=0
Environment=HOME=/storage
EnvironmentFile=-/run/openelec/xbmc.conf
EnvironmentFile=-/run/openelec/debug/xbmc.conf
ExecStart=/bin/sh -c ". /etc/profile; exec /usr/lib/xbmc/xbmc.bin --standalone -fs $XBMC_ARGS $XBMC_DEBUG"
# keep KillMode=process unless there is no good reason to switch to cgroup
KillMode=process
TimeoutStopSec=5
Restart=always
RestartSec=2
StartLimitInterval=0
[Install]
WantedBy=xbmc.target