poiex
1
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?
f00b4r
2
poiex
3
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?
f00b4r
4
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.
system
Closed
6
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.