Bug 53125

Summary: mimir - Не запускается Systemd сервис
Product: Sisyphus Reporter: Руслан Вишталмагомедов <vishtalmagomedovrg>
Component: mimirAssignee: alton <alton>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: alton
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Руслан Вишталмагомедов 2025-02-17 20:57:45 MSK
ALT Server p11 x86-64 (обновленный до Sisyphus)

версия: mimir-2.15.0-alt2.x86_64

Не запускается systemd сервис mimir.service

Шаги воспроизведения:
1. # systemctl start mimir

Результат:
Job for mimir.service failed because the control process exited with error code.
See "systemctl status mimir.service" and "journalctl -xeu mimir.service" for details.

Ожидаемый результат: Сервис запущен без ошибок

journalctl показывает следующее:

(mimir)[1965]: mimir.service: Referenced but unset environment variable evaluates to an empty string: CUSTOM_ARGS, LOG_LEVEL
mimir[1965]: flag needs an argument: -log.level
mimir[1965]: Run with -help to get a list of available parameters

судя по всему, дело в строчке:
/usr/lib/systemd/system/mimir.service:17: EnvironmentFile=$OS_ENV_DIR/mimir

Проблема решается указанием переменных следующим образом:
Environment="LOG_LEVEL=info"
Environment="CUSTOM_ARGS="
Comment 1 Repository Robot 2025-02-19 15:49:09 MSK
mimir-2.15.0-alt3 -> sisyphus:

 Wed Feb 19 2025 Anton Meleshnikov <alton@altlinux> 2.15.0-alt3
 - Added environment variables for systemd and config files (ALT #53125).