mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-26 04:35:39 +03:00
If kodi-gbm gets installed, it creates the "kodi" system user. Then using the service file Kodi can be started on boot to run in KMS mode (kodi-gbm) as the kodi user. In combination with a polkit rule in kodi-polkit the user can then shut down the system from within Kodi. With this setup Alpine Linux with Kodi becomes viable for HTPC devices and smart TV's.
12 lines
276 B
Text
12 lines
276 B
Text
#!/sbin/openrc-run
|
|
|
|
supervisor=supervise-daemon
|
|
|
|
name="Kodi"
|
|
description="A software media player and entertainment hub for digital media"
|
|
|
|
command=/usr/lib/kodi/kodi-gbm
|
|
command_args="--standalone"
|
|
command_background=true
|
|
pidfile="/var/run/kodi.pid"
|
|
command_user="kodi:kodi"
|