Skip to content

Commit

Permalink
feat: run python in optimized mode (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola authored Jan 7, 2024
1 parent 8d4f4c9 commit 60b0162
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/systemd/libretime-analyzer.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ ProtectProc=invisible
ProtectSystem=full
{%- endif %}

Environment=PYTHONOPTIMIZE=2
Environment=PATH={{ libretime_venv_dir }}/bin:/usr/local/bin:/usr/bin:/bin
Environment=LIBRETIME_CONFIG_FILEPATH={{ libretime_config_filepath }}
Environment=LIBRETIME_LOG_FILEPATH={{ libretime_log_dir }}/analyzer.log
Expand Down
1 change: 1 addition & 0 deletions templates/systemd/libretime-api.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ ProtectProc=invisible
ProtectSystem=full
{%- endif %}

Environment=PYTHONOPTIMIZE=2
Environment=PATH={{ libretime_venv_dir }}/bin:/usr/local/bin:/usr/bin:/bin
Environment=LIBRETIME_CONFIG_FILEPATH={{ libretime_config_filepath }}
Environment=LIBRETIME_LOG_FILEPATH={{ libretime_log_dir }}/api.log
Expand Down
1 change: 1 addition & 0 deletions templates/systemd/libretime-liquidsoap.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ ProtectProc=invisible
ProtectSystem=full
{%- endif %}

Environment=PYTHONOPTIMIZE=2
Environment=PATH={{ libretime_venv_dir }}/bin:/usr/local/bin:/usr/bin:/bin
Environment=LIBRETIME_CONFIG_FILEPATH={{ libretime_config_filepath }}
Environment=LIBRETIME_LOG_FILEPATH={{ libretime_log_dir }}/liquidsoap.log
Expand Down
1 change: 1 addition & 0 deletions templates/systemd/libretime-playout.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ ProtectProc=invisible
ProtectSystem=full
{%- endif %}

Environment=PYTHONOPTIMIZE=2
Environment=PATH={{ libretime_venv_dir }}/bin:/usr/local/bin:/usr/bin:/bin
Environment=LIBRETIME_CONFIG_FILEPATH={{ libretime_config_filepath }}
Environment=LIBRETIME_LOG_FILEPATH={{ libretime_log_dir }}/playout.log
Expand Down
1 change: 1 addition & 0 deletions templates/systemd/libretime-worker.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ ProtectProc=invisible
ProtectSystem=full
{%- endif %}

Environment=PYTHONOPTIMIZE=2
Environment=PATH={{ libretime_venv_dir }}/bin:/usr/local/bin:/usr/bin:/bin
Environment=LIBRETIME_CONFIG_FILEPATH={{ libretime_config_filepath }}
Environment=LIBRETIME_LOG_FILEPATH={{ libretime_log_dir }}/worker.log
Expand Down

0 comments on commit 60b0162

Please sign in to comment.