Forum

Full Version: XBMC not respawning after crash
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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
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...
(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.
Reference URL's