Author Topic: XBMCbuntu run script at startup?  (Read 2929 times)

XBMCbuntu run script at startup?
on: March 07, 2012, 09:11:37 AM
I'm having some issues getting a script to run at boot on my new XBMCbuntu install.

I have created a script called xboxdrv to setup 4 wireless xbox 360 pads. The script is executable and runs fine from a command window:

$/etc/xboxdrv start

However when I add that line to rc.local (as below) I get nothing:

Quote from: rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Start xboxdrv controllers using custom start-up script
/etc/xboxdrv start

exit 0

I've made sure rc.local is executable. The script writes logs to file but nothing is written on boot so I assume its not executing at all.

Anyone got any ideas?
Formerly sexytw

Re: XBMCbuntu run script at startup?
Reply #1 on: March 08, 2012, 01:30:07 AM
Try: nohup /etc/xbmcblah start &

nohup will redirect the output to a text file, the ampersand will background the lot meaning your rc.local won't just pause at that line waiting for the script to end.

0 Members and 1 Guest are viewing this topic.