From daab1d917b08e1b1346ace030900e704909aea18 Mon Sep 17 00:00:00 2001 From: Scott Serrano Date: Sat, 5 Mar 2016 21:09:12 -0800 Subject: [PATCH] Update FreeBSD script to match the latest FreeNAS changes --- init-scripts/init.freebsd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init-scripts/init.freebsd b/init-scripts/init.freebsd index 3e3a9d90..b3a62fee 100755 --- a/init-scripts/init.freebsd +++ b/init-scripts/init.freebsd @@ -33,12 +33,13 @@ load_rc_config ${name} : ${plexpy_dir:="/usr/local/plexpy"} : ${plexpy_chdir:="${plexpy_dir}"} : ${plexpy_pid:="${plexpy_dir}/plexpy.pid"} +: ${plexpy_flags:=""} 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 ${plexpy_flags}" # Ensure user is root when running this script. if [ `id -u` != "0" ]; then