I am using kodi-standalone-service on Arch Linux to start Kodi. How does LE start Kodi on x86_64 Linux? I want to see if there is a more efficient/different/more flexible systemd service I can use.
Learn from LE for a non-LE system ... how to start kodi with systemd on x86_64 linux
-
darksky -
January 6, 2019 at 5:47 PM -
Thread is Unresolved
-
-
Here's the service file:
LibreELEC.tv/kodi.service at master · LibreELEC/LibreELEC.tv · GitHub
-
Thank you! Try as I might, I cannot get a modified version of your service to work on my box. It seems to coredump.
Code
Display More[Unit] Description=Kodi Media Center After=network-online.target graphical.target Requires=graphical.target Wants=network-online.target [Service] User=kodi Group=kodi Environment=__GL_YIELD=USLEEP Environment=DISPLAY=:0.0 Environment=WAYLAND_DISPLAY=wayland-0 Environment=SDL_MOUSE_RELATIVE=0 Environment=KODI_HOME=/var/lib/kodi/ #EnvironmentFile=-/run/libreelec/kodi.conf #EnvironmentFile=-/run/libreelec/debug/kodi.conf #ExecStartPre=-/usr/lib/kodi/kodi-config #ExecStart=/usr/lib/kodi/kodi.sh --standalone -fs $KODI_ARGS $KODI_DEBUG ExecStart=/usr/bin/kodi-standalone ExecStop=/bin/kill -TERM $MAINPID #ExecStopPost=-/usr/lib/kodi/kodi-safe-mode #TimeoutStopSec=5 #Restart=always #RestartSec=2 #StartLimitInterval=0 #LimitNOFILE=16384 [Install] WantedBy=graphical.target
When I try to start it:
Code
Display More● kodi2.service - Kodi Media Center Loaded: loaded (/usr/lib/systemd/system/kodi2.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Mon 2019-01-07 17:17:00 EST; 1min 30s ago Process: 982 ExecStop=/bin/kill -TERM $MAINPID (code=exited, status=1/FAILURE) Process: 874 ExecStart=/usr/bin/kodi-standalone (code=exited, status=0/SUCCESS) Main PID: 874 (code=exited, status=0/SUCCESS) Jan 07 17:16:59 orion kodi-standalone[874]: ERROR: Unable to create application. Exiting Jan 07 17:16:59 orion kodi-standalone[874]: /usr/bin/kodi: line 219: 919 Segmentation fault (core dumped) ${KODI_BINARY} $SAVED_ARGS Jan 07 17:16:59 orion kodi-standalone[874]: Crash report available at /var/lib/kodi/kodi_crashlog-20190107_171659.log Jan 07 17:16:59 orion kodi-standalone[874]: ERROR: Unable to create application. Exiting Jan 07 17:17:00 orion kodi-standalone[874]: /usr/bin/kodi: line 219: 954 Segmentation fault (core dumped) ${KODI_BINARY} $SAVED_ARGS Jan 07 17:17:00 orion kodi-standalone[874]: Crash report available at /var/lib/kodi/kodi_crashlog-20190107_171700.log Jan 07 17:17:00 orion systemd[1]: kodi2.service: Control process exited, code=exited status=1 Jan 07 17:17:00 orion kodi-standalone[874]: /usr/bin/kodi --standalone has exited in an unclean state 3 times in the last 2 seconds. Jan 07 17:17:00 orion kodi-standalone[874]: Something is probably wrong Jan 07 17:17:00 orion systemd[1]: kodi2.service: Failed with result 'exit-code'.
The kodi log:
Code... 17:16:59.248 T:140122534957952 NOTICE: Default Video Player: VideoPlayer 17:16:59.248 T:140122534957952 NOTICE: Default Audio Player: paplayer 17:16:59.248 T:140122534957952 NOTICE: Disabled debug logging due to GUI setting. Level 0. 17:16:59.248 T:140122534957952 NOTICE: Log level changed to "LOG_LEVEL_NORMAL" 17:16:59.250 T:140122534957952 NOTICE: Running database version Addons27 17:16:59.250 T:140122534957952 ERROR: ADDONS: manifest missing 17:16:59.250 T:140122534957952 ERROR: ADDONS: Failed to read manifest 17:16:59.250 T:140122534957952 FATAL: CServiceManager::InitStageTwo: Unable to start CAddonMgr