Bug 44890 - Read /etc/cgconfig.d/* on start/stop
Summary: Read /etc/cgconfig.d/* on start/stop
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: libcgroup (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Alexey Shabalin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-11 16:46 MSK by enp
Modified: 2023-01-22 18:29 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description enp 2023-01-11 16:46:56 MSK
В юните /lib/systemd/system/cgconfig.service утилиты cgconfigparser и cgclear читают файл /etc/cgconfig.conf, но не пытаются читать файлы из каталога /etc/cgconfig.d, который даже присутствует в пакете
Comment 2 Alexey Shabalin 2023-01-22 18:19:34 MSK
Вообще странно, эти пути зашиты в исходниках src/libcgroup-internal.h и читаются при запуске утилит:

#define CGCONFIG_CONF_FILE              "/etc/cgconfig.conf"
#define CGCONFIG_CONF_DIR               "/etc/cgconfig.d"

#define CGRULES_CONF_FILE       "/etc/cgrules.conf"
#define CGRULES_CONF_DIR        "/etc/cgrules.d"

Патч приложу, он не помешает.
Comment 3 Repository Robot 2023-01-22 18:29:27 MSK
libcgroup-2.0.3-alt1 -> sisyphus:

 Sun Jan 22 2023 Alexey Shabalin <shaba@altlinux> 2.0.3-alt1
 - 2.0.3
 - Add cgconfig.d support to systemd unit (ALT #44890)