Skip to content

Instantly share code, notes, and snippets.

@mluis
Last active November 23, 2018 00:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mluis/18fce319ae2ac336344ceba5d5c1ba1e to your computer and use it in GitHub Desktop.
Save mluis/18fce319ae2ac336344ceba5d5c1ba1e to your computer and use it in GitHub Desktop.
RPi Kodi Media Center
[Unit]
Description = Kodi Media Center
After = systemd-user-sessions.service network.target sound.target
[Service]
User = kodi
Group = kodi
Type = simple
ExecStart = /usr/bin/kodi-standalone
Restart = always
RestartSec = 5
[Install]
WantedBy = multi-user.target
@mluis
Copy link
Author

mluis commented Nov 22, 2018

sudo -s

adduser --disabled-password --gecos "User to run Kodi Media Center" kodi
adduser kodi audio
adduser kodi video
adduser kodi plugdev
adduser kodi input

systemctl daemon-reload
systemctl enable kodi.service
systemctl start kodi.service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment