mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 21:21:15 -07:00
Add python interpreter to init-scripts
This commit is contained in:
parent
41843dc573
commit
9815c014e8
2 changed files with 7 additions and 4 deletions
|
@ -38,6 +38,7 @@ load_rc_config ${name}
|
||||||
status_cmd="${name}_status"
|
status_cmd="${name}_status"
|
||||||
stop_cmd="${name}_stop"
|
stop_cmd="${name}_stop"
|
||||||
|
|
||||||
|
command_interpreter="python3"
|
||||||
command="${tautulli_dir}/Tautulli.py"
|
command="${tautulli_dir}/Tautulli.py"
|
||||||
command_args="--daemon --pidfile ${tautulli_pid} --quiet --nolaunch ${tautulli_flags}"
|
command_args="--daemon --pidfile ${tautulli_pid} --quiet --nolaunch ${tautulli_flags}"
|
||||||
|
|
||||||
|
|
|
@ -31,11 +31,13 @@
|
||||||
# sudo chown tautulli:tautulli -R /opt/Tautulli
|
# sudo chown tautulli:tautulli -R /opt/Tautulli
|
||||||
#
|
#
|
||||||
# - Adjust ExecStart= to point to:
|
# - Adjust ExecStart= to point to:
|
||||||
# 1. Your Tautulli executable
|
# 1. Your Python interpreter (get the path with command -v python3)
|
||||||
|
# - Default: /usr/bin/python3
|
||||||
|
# 2. Your Tautulli executable
|
||||||
# - Default: /opt/Tautulli/Tautulli.py
|
# - Default: /opt/Tautulli/Tautulli.py
|
||||||
# 2. Your config file (recommended is to put it somewhere in /etc)
|
# 3. Your config file (recommended is to put it somewhere in /etc)
|
||||||
# - Default: --config /opt/Tautulli/config.ini
|
# - Default: --config /opt/Tautulli/config.ini
|
||||||
# 3. Your datadir (recommended is to NOT put it in your Tautulli exec dir)
|
# 4. Your datadir (recommended is to NOT put it in your Tautulli exec dir)
|
||||||
# - Default: --datadir /opt/Tautulli
|
# - Default: --datadir /opt/Tautulli
|
||||||
#
|
#
|
||||||
# - Adjust User= and Group= to the user/group you want Tautulli to run as.
|
# - Adjust User= and Group= to the user/group you want Tautulli to run as.
|
||||||
|
@ -50,7 +52,7 @@ Wants=network-online.target
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/opt/Tautulli/Tautulli.py --config /opt/Tautulli/config.ini --datadir /opt/Tautulli --quiet --daemon --nolaunch
|
ExecStart=/usr/bin/python3 /opt/Tautulli/Tautulli.py --config /opt/Tautulli/config.ini --datadir /opt/Tautulli --quiet --daemon --nolaunch
|
||||||
GuessMainPID=no
|
GuessMainPID=no
|
||||||
Type=forking
|
Type=forking
|
||||||
User=tautulli
|
User=tautulli
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue