Skip to content

Commit 60b0162

Browse files
authoredJan 7, 2024
feat: run python in optimized mode (#75)
1 parent 8d4f4c9 commit 60b0162

5 files changed

+5
-0
lines changed
 

‎templates/systemd/libretime-analyzer.service.j2

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ ProtectProc=invisible
1919
ProtectSystem=full
2020
{%- endif %}
2121

22+
Environment=PYTHONOPTIMIZE=2
2223
Environment=PATH={{ libretime_venv_dir }}/bin:/usr/local/bin:/usr/bin:/bin
2324
Environment=LIBRETIME_CONFIG_FILEPATH={{ libretime_config_filepath }}
2425
Environment=LIBRETIME_LOG_FILEPATH={{ libretime_log_dir }}/analyzer.log

‎templates/systemd/libretime-api.service.j2

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ ProtectProc=invisible
2020
ProtectSystem=full
2121
{%- endif %}
2222

23+
Environment=PYTHONOPTIMIZE=2
2324
Environment=PATH={{ libretime_venv_dir }}/bin:/usr/local/bin:/usr/bin:/bin
2425
Environment=LIBRETIME_CONFIG_FILEPATH={{ libretime_config_filepath }}
2526
Environment=LIBRETIME_LOG_FILEPATH={{ libretime_log_dir }}/api.log

‎templates/systemd/libretime-liquidsoap.service.j2

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ ProtectProc=invisible
1919
ProtectSystem=full
2020
{%- endif %}
2121

22+
Environment=PYTHONOPTIMIZE=2
2223
Environment=PATH={{ libretime_venv_dir }}/bin:/usr/local/bin:/usr/bin:/bin
2324
Environment=LIBRETIME_CONFIG_FILEPATH={{ libretime_config_filepath }}
2425
Environment=LIBRETIME_LOG_FILEPATH={{ libretime_log_dir }}/liquidsoap.log

‎templates/systemd/libretime-playout.service.j2

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ ProtectProc=invisible
2121
ProtectSystem=full
2222
{%- endif %}
2323

24+
Environment=PYTHONOPTIMIZE=2
2425
Environment=PATH={{ libretime_venv_dir }}/bin:/usr/local/bin:/usr/bin:/bin
2526
Environment=LIBRETIME_CONFIG_FILEPATH={{ libretime_config_filepath }}
2627
Environment=LIBRETIME_LOG_FILEPATH={{ libretime_log_dir }}/playout.log

‎templates/systemd/libretime-worker.service.j2

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ ProtectProc=invisible
1919
ProtectSystem=full
2020
{%- endif %}
2121

22+
Environment=PYTHONOPTIMIZE=2
2223
Environment=PATH={{ libretime_venv_dir }}/bin:/usr/local/bin:/usr/bin:/bin
2324
Environment=LIBRETIME_CONFIG_FILEPATH={{ libretime_config_filepath }}
2425
Environment=LIBRETIME_LOG_FILEPATH={{ libretime_log_dir }}/worker.log

0 commit comments

Comments
 (0)