Skip to content

Instantly share code, notes, and snippets.

@vincentbernat
Created October 20, 2014 18:19
Show Gist options
  • Save vincentbernat/617e3e931074283df865 to your computer and use it in GitHub Desktop.
Save vincentbernat/617e3e931074283df865 to your computer and use it in GitHub Desktop.
[Unit]
Description = XBMC Media Center
After = remote-fs.target
After = syslog.target
[Service]
User = xbmc
Group = xbmc
Type = simple
Restart = always
RestartSec = 15
KillMode = process
Environment = "AE_SINK=ALSA"
ExecStart = /usr/bin/xinit /usr/bin/xbmc-standalone -- :0
ExecStop = /usr/bin/xbmc-send --action="XBMC.Quit"
TTYPath = /dev/tty9
StandardInput = tty
StandardOutput = journal
[Install]
WantedBy = multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment