Forum
[PROBLEM] XBMC not respawning after crash - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Others (/forum-24.html)
+--- Thread: [PROBLEM] XBMC not respawning after crash (/thread-897.html)



XBMC not respawning after crash - mihailescu2m - 14th May, 2013 08:44 AM

It happens sometimes that XBMC crashes (I had some when pausing/resuming airplay video). I was expecting XBMC to respawn, however, this is not happening.

The screen is black, service xbmc status shows that xbmc is not running, and I have to SSH to the pi and do a service xbmc start. Aren't daemons suppose to respawn?


RE: XBMC not respawning after crash - kraleksandr - 14th May, 2013 11:35 PM

U can map one button of ur remote for this.
To do this u have to:

Terminal
sudoedit /etc/lirc/hardware/lirc_rpi.conf
then uncomment and set
Code:
START_IREXEC=true

Terminal
sudoedit /etc/lirc/lircrc
add this
Code:
begin
    prog = irexec
    button = key_karaoke
    config = sudo /home/xbian/xbres.sh &
end
Quote:button is the button of ur remote (from remote.conf)
config is mapped action

Terminal
sudoedit /etc/sudoers
add this
Code:
xbian ALL=(ALL) NOPASSWD: /home/xbian/xbres.sh

Terminal
nano ~/xbres.sh
add this
Code:
#!/bin/bash
service xbmc restart
then
Terminal
sudo chmod +x ~/xbres.sh
sudo reboot



RE: XBMC not respawning after crash - mihailescu2m - 16th May, 2013 09:09 AM

I did it in another way, since I am not using lirc but cec Smile
When xbmc exits, it starts a daemon that monitors HDMI routing changes, and starts xbmc. So I would just switch to TV and then back to HDMI and xbmc would restart...


RE: XBMC not respawning after crash - slackhead - 17th May, 2013 11:22 PM

(14th May, 2013 11:35 PM)kraleksandr Wrote:  U can map one button of ur remote for this.

Thank you - just came here looking to find how to do exactly this. Works a treat.