Fix FreeBSD and FreeNAS init scripts daemonizing

This commit is contained in:
JonnyWong16 2016-02-02 21:23:48 -08:00
parent f409dda2ef
commit 1095e29b4d
2 changed files with 2 additions and 2 deletions

View file

@ -38,7 +38,7 @@ status_cmd="${name}_status"
stop_cmd="${name}_stop"
command="/usr/sbin/daemon"
command_args="-f -p ${plexpy_pid} python2 ${plexpy_dir}/PlexPy.py ${plexpy_flags} --quiet --nolaunch"
command_args="python2 ${plexpy_dir}/PlexPy.py --daemon --pidfile ${plexpy_pid} --quiet --nolaunch"
# Ensure user is root when running this script.
if [ `id -u` != "0" ]; then