Skip to content

Instantly share code, notes, and snippets.

@mtekk mtekk/plex
Created Feb 28, 2014

Embed
What would you like to do?
PlexHT init.d script for Gentoo/Funtoo
#!/sbin/runscript
# Released under the 2-clause BSD license.
description="Start and stop Plex Home Theater"
depend()
{
need net
}
start()
{
ebegin "Starting Plex"
export XBMC_HOME=/opt/plexhometheater/share/XBMC/
start-stop-daemon --start -u ${PLEX_USER:-plex} --background --pidfile /var/run/plex.pid --make-pidfile --exec /usr/bin/xinit -- /opt/plexhometheater/bin/plexhometheater ${PLEX_OPTS} -- :0
eend $?
}
stop()
{
ebegin "Stopping Plex"
start-stop-daemon --stop --pidfile /var/run/plex.pid
eend $?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.