diff --git a/init-scripts/init.freenas b/init-scripts/init.freenas index e2946f2b..69360321 100755 --- a/init-scripts/init.freenas +++ b/init-scripts/init.freenas @@ -37,8 +37,8 @@ load_rc_config ${name} status_cmd="${name}_status" stop_cmd="${name}_stop" -command="/usr/sbin/daemon" -command_args="python2 ${plexpy_dir}/PlexPy.py --daemon --pidfile ${plexpy_pid} --quiet --nolaunch" +command="${plexpy_dir}/PlexPy.py" +command_args="--daemon --pidfile ${plexpy_pid} --quiet --nolaunch" # Ensure user is root when running this script. if [ `id -u` != "0" ]; then