Skip to content

Commit

Permalink
feat: run python in optimized mode (#2874)
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Jan 7, 2024
1 parent 4827dbc commit 3f7fc99
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions analyzer/install/systemd/libretime-analyzer.service
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ ProtectKernelTunables=true
ProtectProc=invisible
ProtectSystem=full

Environment=PYTHONOPTIMIZE=2
Environment=LIBRETIME_CONFIG_FILEPATH=@@CONFIG_FILEPATH@@
Environment=LIBRETIME_LOG_FILEPATH=@@LOG_DIR@@/analyzer.log
WorkingDirectory=@@WORKING_DIR@@/analyzer
Expand Down
1 change: 1 addition & 0 deletions api/install/systemd/libretime-api.service
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ ProtectKernelTunables=true
ProtectProc=invisible
ProtectSystem=full

Environment=PYTHONOPTIMIZE=2
Environment=LIBRETIME_CONFIG_FILEPATH=@@CONFIG_FILEPATH@@
Environment=LIBRETIME_LOG_FILEPATH=@@LOG_DIR@@/api.log

Expand Down
1 change: 1 addition & 0 deletions playout/install/systemd/libretime-liquidsoap.service
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ ProtectKernelTunables=true
ProtectProc=invisible
ProtectSystem=full

Environment=PYTHONOPTIMIZE=2
Environment=LIBRETIME_CONFIG_FILEPATH=@@CONFIG_FILEPATH@@
Environment=LIBRETIME_LOG_FILEPATH=@@LOG_DIR@@/liquidsoap.log
WorkingDirectory=@@WORKING_DIR@@/playout
Expand Down
1 change: 1 addition & 0 deletions playout/install/systemd/libretime-playout.service
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ ProtectKernelTunables=true
ProtectProc=invisible
ProtectSystem=full

Environment=PYTHONOPTIMIZE=2
Environment=LIBRETIME_CONFIG_FILEPATH=@@CONFIG_FILEPATH@@
Environment=LIBRETIME_LOG_FILEPATH=@@LOG_DIR@@/playout.log
WorkingDirectory=@@WORKING_DIR@@/playout
Expand Down
1 change: 1 addition & 0 deletions worker/install/systemd/libretime-worker.service
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ ProtectKernelTunables=true
ProtectProc=invisible
ProtectSystem=full

Environment=PYTHONOPTIMIZE=2
Environment=LIBRETIME_CONFIG_FILEPATH=@@CONFIG_FILEPATH@@
Environment=LIBRETIME_LOG_FILEPATH=@@LOG_DIR@@/worker.log
WorkingDirectory=@@WORKING_DIR@@/worker
Expand Down

0 comments on commit 3f7fc99

Please sign in to comment.