Kodi webserver autostart problem

This forum is for discussion about general software issues.

Kodi webserver autostart problem

Postby maciar » Thu Jan 15, 2015 7:33 am

Hello.

I've installed Kodi following https://wiki.archlinux.org/index.php/Kodi.
I've activated Kodi webserver and remote controlling like here: http://kodi.wiki/view/Remote_controls

Now, I want to add Kodi to autostart so:

$this->bbcode_second_pass_code('', 'systemctl enable kodi')

reboot. Kodi works, but webserver on port 8080 not.

ps ax | grep kodi
$this->bbcode_second_pass_code('', '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')

netstat -tulpn | grep kodi
$this->bbcode_second_pass_code('', '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')

Ok, so $this->bbcode_second_pass_code('', ' systemctl stop kodi')

and $this->bbcode_second_pass_code('', '/bin/sh /usr/bin/kodi-standalone -l /run/lirc/lircd')

ps ax | grep kodi
$this->bbcode_second_pass_code('', ' 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')

and now everything works fine.

netstat -tulpn | grep kodi
$this->bbcode_second_pass_code('', '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')

$this->bbcode_second_pass_code('', ' systemctl start kodi') gives the same rasults as $this->bbcode_second_pass_code('', 'systemctl enable kodi') at startup.

/usr/lib/systemd/system/kodi.service
$this->bbcode_second_pass_code('', '[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')

Has anyone any ideas? Thanks in advance.
maciar
 
Posts: 7
Joined: Thu Jan 15, 2015 7:21 am

Return to General

Who is online

Users browsing this forum: No registered users and 9 guests