Plexconnect daemon and freenas 9.2

Hi im trying to find quides how to start plexconnect automatically at startup but cannot find how to do it?

My plex is working fine with manual startup command bash /PlexConnect/PlexConnect_daemon.bash start 

i wanted it to kick in at startup, do i have to edit files inside jail or in main root user?

 

https://forums.plex.tv/index.php?/topic/82890-Feature-Request%3A-Daemon-for-FreeBSD

I allready tryed that post but i got nowhere with it made the file in Plexmediaserver jail /usr/local/etc/rc.d/plexConnect_daemon and pasted the code:

#! /bin/sh
#
#
# PROVIDE: plexConnect_daemon
# REQUIRE: DAEMON
# KEYWORD: shutdown
. /etc/rc.subr
name="plexconnect"
rcvar=`set_rcvar`
 
command="/usr/local/bin/python"
pidfile="/var/run/${name}.pid"
plexconnect_flags="/usr/local/plexconnect/PlexConnect/PlexConnect_daemon.py --pidfile $pidfile"
eval ${name}_flags=\"${plexconnect_flags}\"
load_rc_config $name
run_rc_command "$1"

Could i just start it with sameway as the plexmediaserver?

There is also this topic: https://forums.plex.tv/index.php?/topic/80919-Help-getting-Plexconnect-to-work-on-Nas4free

Assuming that FreeNAS inherits FreeBSD rc system you need to edit /etc/rc.conf:

plexconnect_enable="YES"

make sure that plexConnect_daemon has execute permissions, try to start it manually 

/usr/local/etc/rc.d/plexConnect_daemon start

If you run plexconnect in jail, I believe editing should be done inside the jail.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.