Bug 41526 - Не запускается consolesaver.service
Summary: Не запускается consolesaver.service
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: console-scripts (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Alexey Gladkov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-08 14:45 MSK by Alexander Makeenkov
Modified: 2021-12-08 15:27 MSK (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Makeenkov 2021-12-08 14:45:26 MSK
Запуск завершается ошибкой "setterm: $TERM is not defined":

× consolesaver.service - Initialize console powersaver
     Loaded: loaded (/lib/systemd/system/consolesaver.service; disabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Wed 2021-12-08 14:27:10 MSK; 1s ago
    Process: 33480 ExecStart=/bin/sh -c /usr/bin/setterm `/bin/cat /etc/sysconfig/console/setterm` >/dev/console (code=exited, status=1/FAILURE)
   Main PID: 33480 (code=exited, status=1/FAILURE)
        CPU: 13ms

дек 08 14:27:10 workstation-10-x86-64-20211026.localdomain systemd[1]: Starting Initialize console powersaver...
дек 08 14:27:10 workstation-10-x86-64-20211026.localdomain systemd[1]: consolesaver.service: Main process exited, code=exited, status=1/FAILURE
дек 08 14:27:10 workstation-10-x86-64-20211026.localdomain sh[33483]: setterm: $TERM is not defined.
дек 08 14:27:10 workstation-10-x86-64-20211026.localdomain systemd[1]: consolesaver.service: Failed with result 'exit-code'.
дек 08 14:27:10 workstation-10-x86-64-20211026.localdomain systemd[1]: Failed to start Initialize console powersaver.

Версия: console-scripts-2.4.0-alt2

При этом, запуск /etc/rc.d/init.d/consolesaver выполняется успешно, и настройки, указанные в /etc/sysconfig/console/setterm применяются:
# /etc/rc.d/init.d/consolesaver start
Initializing console powersaver: [ DONE ]
Comment 1 Alexey Gladkov 2021-12-08 15:27:02 MSK
Я не знаю, что с этим делать. Может пользователи systemd подскажут.