Skip to content

Instantly share code, notes, and snippets.

@tru
Created February 4, 2013 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tru/4705609 to your computer and use it in GitHub Desktop.
Save tru/4705609 to your computer and use it in GitHub Desktop.
description "Plex Home Theater"
author "tobias hieta"
start on ((filesystem
and runlevel [!06]
and started dbus
and (drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1
or stopped udev-fallback-graphics))
or runlevel PREVLEVEL=S)
stop on runlevel [06]
env XBMC_HOME=/opt/plexhometheater/share/XBMC
script
exec 2>> /tmp/test.log
set -x
start-stop-daemon --start -c tru --background --pidfile /var/run/pht.pid --make-pidfile --exec /usr/bin/xinit -- /opt/plexhometheater/bin/plexhometheater --standalone -- :0
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment