PlexConnect

https://github.com/iBaa/PlexConnect

最低限入れておくべきもの(jailを想定)

  • plexmediaserver(これは当然)
  • ca_root_nss
  • python2.*

スタートアップスクリプト

/usr/local/etc/rc.dに設置。
/etc/rc.confにplexconnect_enable=“YES”

#! /bin/sh
#
#
# PROVIDE: plexconnect
# REQUIRE: DAEMON
# KEYWORD: shutdown

. /etc/rc.subr

name="plexconnect"
rcvar=plexconnect_enable

command="/usr/local/bin/python"
pidfile="/var/run/${name}.pid"
plexconnect_flags="/usr/local/PlexConnect/PlexConnect_daemon.py --pidfile $pidfile"
eval ${name}_flags=\"${plexconnect_flags}\"

load_rc_config $name
run_rc_command "$1"