summaryrefslogtreecommitdiff
path: root/pcr/xbmc-standalone-service/xbmc.service
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/xbmc-standalone-service/xbmc.service')
-rw-r--r--pcr/xbmc-standalone-service/xbmc.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/pcr/xbmc-standalone-service/xbmc.service b/pcr/xbmc-standalone-service/xbmc.service
new file mode 100644
index 000000000..90119f07d
--- /dev/null
+++ b/pcr/xbmc-standalone-service/xbmc.service
@@ -0,0 +1,16 @@
+[Unit]
+Description = Starts instance of XBMC using xinit
+After = systemd-user-sessions.service network.target
+Conflicts=getty@tty7.service
+
+[Service]
+User = xbmc
+Group = xbmc
+PAMName=login
+Type = simple
+TTYPath=/dev/tty7
+ExecStart = /usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/xbmc-standalone -- :0 -nolisten tcp vt7
+Restart = on-abort
+
+[Install]
+WantedBy = multi-user.target