From 4c3a63a7e135efdde47cf7defb332ace2c4ce792 Mon Sep 17 00:00:00 2001 From: Scott Serrano Date: Tue, 23 Feb 2016 22:27:06 -0800 Subject: [PATCH] Allow for additional plexpy arguments like port --- init-scripts/init.freenas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init-scripts/init.freenas b/init-scripts/init.freenas index 69360321..54587aa8 100755 --- a/init-scripts/init.freenas +++ b/init-scripts/init.freenas @@ -33,12 +33,13 @@ load_rc_config ${name} : ${plexpy_dir:="/usr/local/share/plexpy"} : ${plexpy_chdir:="${plexpy_dir}"} : ${plexpy_pid:="${plexpy_dir}/plexpy.pid"} +: ${plexpy_flags:=""} status_cmd="${name}_status" stop_cmd="${name}_stop" command="${plexpy_dir}/PlexPy.py" -command_args="--daemon --pidfile ${plexpy_pid} --quiet --nolaunch" +command_args="--daemon --pidfile ${plexpy_pid} --quiet --nolaunch ${plexpy_flags}" # Ensure user is root when running this script. if [ `id -u` != "0" ]; then