\fBkodi-xxx.service \fP- Systemd service units to run Kodi in standalone mode without the need for a DE.
\fB
.SHDESCRIPTION
Systemd service units to run kodi in standalone mode using X11, GBM, or Wayland.
.PP
Provided services are:
.IP\(bu3
/usr/lib/systemd/system/kodi-x11.service
.IP\(bu3
/usr/lib/systemd/system/kodi-gbm.service
.IP\(bu3
/usr/lib/systemd/system/kodi-wayland.service
.SHNOTESONSYSTEMSHUTDOWN/REBOOT
Be aware that these services run Kodi in systemd's user.slice not in the system.slice. In order to have Kodi gracefully exit, the system should be called to shutdown or to reboot using the respective Kodi actions not by a call to systemctl.
If you do reboot or shutdown via a call to systemctl, this will result in systemd killing the cg too quickly and data loss to your Kodi profile will occur. When Kodi exits cleanly, it will save GUI settings, media settings, Kodi uptime etc. In principal this is no different than data loss occurring from a user doing work when a sysadmin issues a reboot command without prior warning. While it is possible to run Kodi in systemd's system.slice instead, doing so makes it difficult to use USB mounts within Kodi and to use pulseaudio for Kodi sessions.
.SHRECOMMENDEDMETHODSTOSHUTDOWN/REBOOT
Here are several options:
.IP\(bu3
Select the corresponding option under Power menu in the Kodi GUI.
Certain use cases require environment variables to be passed to the service. Define these variables in /etc/conf.d/kodi-standalone and they will be passed along to the service.