You are not logged in.

#1 2015-01-12 16:17:09

maci3k
Member
Registered: 2009-12-02
Posts: 14

Kodi (XBMC) server won't start on boot

Hello.

I've configured Kodi to start server for remote controlling. When I'm starting it using

systemctl start kodi

application starts, but the serwer not. But what is strange, as root i'm starting the command which ps ax returns:

/bin/sh /usr/bin/kodi-standalone -l /run/lirc/lircd

and now server on port 80 works ! What is wrong with systemd method? Of course the same is with systemctl enable - server doesn't start.

Last edited by maci3k (2015-01-12 16:18:20)

Offline

#2 2015-01-13 22:24:50

maci3k
Member
Registered: 2009-12-02
Posts: 14

Re: Kodi (XBMC) server won't start on boot

Anyone? Please smile

I've tried everything. I've changed port of webserver to 8080. Now, when I'm strating kodi using

systemctl start kodi, the results of netstat -tulpn | grep kodi are:

tcp        0      0 0.0.0.0:1086            0.0.0.0:*               LISTEN      1491/kodi.bin
tcp        0      0 0.0.0.0:1447            0.0.0.0:*               LISTEN      1491/kodi.bin
tcp        0      0 0.0.0.0:1418            0.0.0.0:*               LISTEN      1491/kodi.bin
tcp6       0      0 ::1:9090                :::*                    LISTEN      1491/kodi.bin
udp        0      0 0.0.0.0:1900            0.0.0.0:*                           1491/kodi.bin
udp        0      0 0.0.0.0:15752           0.0.0.0:*                           1491/kodi.bin
udp        0      0 0.0.0.0:11550           0.0.0.0:*                           1491/kodi.bin
udp        0      0 0.0.0.0:9777            0.0.0.0:*                           1491/kodi.bin

So the server on port 8080 doesn't work.

But kodi started using /bin/sh /usr/bin/kodi-standalone -l /run/lirc/lircd works - netstat -tulpn | grep kodi returns:

tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      1919/kodi.bin
tcp6       0      0 :::9090                 :::*                    LISTEN      1919/kodi.bin
tcp6       0      0 :::8080                 :::*                    LISTEN      1919/kodi.bin
udp        0      0 0.0.0.0:9777            0.0.0.0:*                           1919/kodi.bin

Why there is a difference? Processes in both ways are the same (ps ax | grep kodi command):

systemctl start kodi

 1064 ?        Ss     0:00 /bin/sh /usr/bin/kodi-standalone -l /run/lirc/lircd
 1066 ?        S      0:00 /bin/sh /usr/bin/kodi --standalone -l /run/lirc/lircd
 1069 ?        Rl     2:32 /usr/lib/kodi/kodi.bin --standalone -l /run/lirc/lircd
 1353 pts/0    S+     0:00 grep kodi

/bin/sh /usr/bin/kodi-standalone -l /run/lirc/lircd

 1914 pts/0    S+     0:00 /bin/sh /usr/bin/kodi-standalone -l /run/lirc/lircd
 1916 pts/0    S+     0:00 /bin/sh /usr/bin/kodi --standalone -l /run/lirc/lircd
 1919 pts/0    Rl+    2:16 /usr/lib/kodi/kodi.bin --standalone -l /run/lirc/lircd
 1971 pts/1    S+     0:00 grep kodi

Offline

#3 2015-01-13 22:41:05

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,729
Website

Re: Kodi (XBMC) server won't start on boot

Are you using kodi-standalone-service from the AUR or did you roll your own?

Offline

#4 2015-01-14 06:34:01

maci3k
Member
Registered: 2009-12-02
Posts: 14

Re: Kodi (XBMC) server won't start on boot

Thanks for reply.

Hmm...actually none of them.

I've installed kodi for raspberry pi, and there was a kodi.service build-in.

/usr/lib/systemd/system/kodi.service

[Unit]
Description = Starts an instance of Kodi
After = remote-fs.target

[Service]
User = kodi
Group = kodi
Type = simple
ExecStart = /usr/bin/kodi-standalone -l /run/lirc/lircd
Restart = on-failure

[Install]
WantedBy = multi-user.target

Offline

#5 2015-01-14 10:31:50

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,729
Website

Re: Kodi (XBMC) server won't start on boot

Dunno.. U should probably post on arch arm not here since it's an rpi.

Offline

#6 2015-01-15 08:32:49

maci3k
Member
Registered: 2009-12-02
Posts: 14

Re: Kodi (XBMC) server won't start on boot

Thanks a lot smile

Offline

Board footer

Powered by FluxBB