2015-04-24, 20:02
(2015-04-24, 19:57)tommy_gun Wrote: Hello,
I currently upgraded to Vivid (without any thoughts ) and now everithing seems messed up with upstart and systemd.
Since the kodi.conf is only for upstart, could anybody help me writing the correct file for systemd?
Thank you
Try adding this file
Code:
root@kodi:~# cat /etc/systemd/system/kodi.service
[Unit]
Description = kodi-standalone using xinit
After = systemd-user-sessions.service network.target sound.target
[email protected]
[Service]
User = kodi
Group = kodi
Type = simple
PAMName=login
TTYPath=/dev/tty7
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/kodi-standalone -- :0 -nolisten tcp vt7
StandardInput = tty
Restart = on-abort
Nice = 21 21
[Install]
WantedBy = multi-user.target
Pay attention to the file name.
Then type
Code:
# systemctl daemon-reload
# systemctl enable kodi
# systemctl start kodi
(or reboot)
If dbus-x11 is not install, apt-get install dbus-x11