mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 01:32:57 -07:00
Merge pull request #594 from chiviak/160223_freenas_dev
Few improvements to the FreeNAS/FreeBSD init scripts
This commit is contained in:
commit
d4eed9f8fd
2 changed files with 6 additions and 4 deletions
|
@ -33,12 +33,13 @@ load_rc_config ${name}
|
||||||
: ${plexpy_dir:="/usr/local/plexpy"}
|
: ${plexpy_dir:="/usr/local/plexpy"}
|
||||||
: ${plexpy_chdir:="${plexpy_dir}"}
|
: ${plexpy_chdir:="${plexpy_dir}"}
|
||||||
: ${plexpy_pid:="${plexpy_dir}/plexpy.pid"}
|
: ${plexpy_pid:="${plexpy_dir}/plexpy.pid"}
|
||||||
|
: ${plexpy_flags:=""}
|
||||||
|
|
||||||
status_cmd="${name}_status"
|
status_cmd="${name}_status"
|
||||||
stop_cmd="${name}_stop"
|
stop_cmd="${name}_stop"
|
||||||
|
|
||||||
command="/usr/sbin/daemon"
|
command="${plexpy_dir}/PlexPy.py"
|
||||||
command_args="python2 ${plexpy_dir}/PlexPy.py --daemon --pidfile ${plexpy_pid} --quiet --nolaunch"
|
command_args="--daemon --pidfile ${plexpy_pid} --quiet --nolaunch ${plexpy_flags}"
|
||||||
|
|
||||||
# Ensure user is root when running this script.
|
# Ensure user is root when running this script.
|
||||||
if [ `id -u` != "0" ]; then
|
if [ `id -u` != "0" ]; then
|
||||||
|
|
5
init-scripts/init.freenas
Normal file → Executable file
5
init-scripts/init.freenas
Normal file → Executable file
|
@ -33,12 +33,13 @@ load_rc_config ${name}
|
||||||
: ${plexpy_dir:="/usr/local/share/plexpy"}
|
: ${plexpy_dir:="/usr/local/share/plexpy"}
|
||||||
: ${plexpy_chdir:="${plexpy_dir}"}
|
: ${plexpy_chdir:="${plexpy_dir}"}
|
||||||
: ${plexpy_pid:="${plexpy_dir}/plexpy.pid"}
|
: ${plexpy_pid:="${plexpy_dir}/plexpy.pid"}
|
||||||
|
: ${plexpy_flags:=""}
|
||||||
|
|
||||||
status_cmd="${name}_status"
|
status_cmd="${name}_status"
|
||||||
stop_cmd="${name}_stop"
|
stop_cmd="${name}_stop"
|
||||||
|
|
||||||
command="/usr/sbin/daemon"
|
command="${plexpy_dir}/PlexPy.py"
|
||||||
command_args="python2 ${plexpy_dir}/PlexPy.py --daemon --pidfile ${plexpy_pid} --quiet --nolaunch"
|
command_args="--daemon --pidfile ${plexpy_pid} --quiet --nolaunch ${plexpy_flags}"
|
||||||
|
|
||||||
# Ensure user is root when running this script.
|
# Ensure user is root when running this script.
|
||||||
if [ `id -u` != "0" ]; then
|
if [ `id -u` != "0" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue