Run plexpy directly in daemon mode instead of using the daemon program

This commit is contained in:
Scott Serrano 2016-02-23 22:25:08 -08:00
parent 2bac4ac1a7
commit 7cc58b84da

View file

@ -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