1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 04:35:39 +03:00
aports/community/kodi/kodi.initd
Bart Ribbers c3b0700daa community/kodi: allow running kodi-gbm at boot as it's own user
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.
2019-08-20 13:02:54 -03:00

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"