Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

XBMC won't autorun after xbian deb upgrades
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
XBMC won't autorun after xbian deb upgrades
8th Sep, 2013, 08:18 AM
Post: #3
Zundrium Offline
Registered
Posts: 21
Joined: Jun 2013
Reputation: 1
RE: XBMC won't autorun after xbian deb upgrades
(8th Sep, 2013 08:16 AM)mk01 Wrote:  can you please post you /etc/init/xbmc.conf ?

Code:
#!upstart
description "xbmc"

env USER=xbian
env HOME=/home/xbian
env GROUP=xbian
env DAEMON="/usr/local/lib/xbmc/xbmc.bin"
env DAEMON_ARGS="--standalone"
env PPLAYER='-3'
env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

start on started xbmc-preload and (stopped xbian-fstab or started networking)
stop on runlevel [06]

# only effective during starting until full load. for niceness, set /etc/default/xbmc
nice 0

normal exit 143

emits xbmc-failed-start

kill timeout 5

pre-start script
    if [ -e /etc/init/wait-for-state.override ]; then
        start -q wait-for-state WAIT_FOR=xbmc-exits WAITER=xbmc WAIT_STATE=stopped ACT=no || :
    else
        ! status -q xbian-waiter || start xbian-waiter WAIT_FOR=xbmc-exits WAITER=xbmc WAIT_STATE="stop/waiting"
    fi

    splash --infinitebar --msgtxt="starting xbmc..." &
    echo "$(cat /proc/uptime) $(findmnt)" >> /run/uptime_start.log
end script

post-start script
    i=0

    while ! fuser 9777/udp; do
        sleep 1
        i=$((i+1))
        [ $i -le 100 ] || { initctl emit -n xbmc-failed-start; stop; exit 1; }
    done

    cec-client -o XBIAN -d 1 & > /dev/null 2>&1
end script

exec start-stop-daemon -c $USER:$GROUP -S --startas $DAEMON -d $HOME -x $DAEMON -- $DAEMON_ARGS

Thanks for taking a look
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
XBMC won't autorun after xbian deb upgrades - Zundrium - 8th Sep, 2013, 07:41 AM
RE: XBMC won't autorun after xbian deb upgrades - mk01 - 8th Sep, 2013, 08:16 AM
RE: XBMC won't autorun after xbian deb upgrades - Zundrium - 8th Sep, 2013 08:18 AM
RE: XBMC won't autorun after xbian deb upgrades - mk01 - 8th Sep, 2013, 08:21 AM
RE: XBMC won't autorun after xbian deb upgrades - Zundrium - 8th Sep, 2013, 08:25 AM
RE: XBMC won't autorun after xbian deb upgrades - mk01 - 8th Sep, 2013, 08:34 AM
RE: XBMC won't autorun after xbian deb upgrades - Zundrium - 8th Sep, 2013, 08:39 AM
RE: XBMC won't autorun after xbian deb upgrades - mk01 - 8th Sep, 2013, 08:55 AM
RE: XBMC won't autorun after xbian deb upgrades - Zundrium - 8th Sep, 2013, 09:04 AM
RE: XBMC won't autorun after xbian deb upgrades - mk01 - 8th Sep, 2013, 09:22 AM
RE: XBMC won't autorun after xbian deb upgrades - Zundrium - 8th Sep, 2013, 09:32 AM
RE: XBMC won't autorun after xbian deb upgrades - mk01 - 8th Sep, 2013, 10:01 AM
RE: XBMC won't autorun after xbian deb upgrades - Koenkk - 8th Sep, 2013, 07:18 PM
RE: XBMC won't autorun after xbian deb upgrades - Zundrium - 8th Sep, 2013, 08:37 PM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 25th May, 2025, 09:32 AM Powered By MyBB, © 2002-2025 MyBB Group.