From 705111a7b59291649ca434f5e96f2ee912114d22 Mon Sep 17 00:00:00 2001 From: Scott Serrano Date: Tue, 23 Feb 2016 22:25:08 -0800 Subject: [PATCH] Run plexpy directly in daemon mode instead of using the daemon program --- init-scripts/init.freenas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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