Support passing in fabric manager config

* Allows the ability to customize log file path, log rotation, and more

Signed-off-by: Kathryn Baldauf <kabaldau@microsoft.com>
This commit is contained in:
Kathryn Baldauf 2024-08-27 13:50:51 -07:00
Родитель f80cf917a3
Коммит 512aaa21c1
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -625,7 +625,8 @@ void start_services() {
dmesgWarn("nv-fabricmanager not present, skipping ");
} else {
dmesgInfo("start nv-fabricmanager daemon");
pid_t fm_pid = launch(1, &fm_name);
char* command[] = {fm_name, "-c", "/usr/share/nvidia/nvswitch/fabricmanager.cfg"};
pid_t fm_pid = launch(3, command);
if (fm_pid < 0) {
// do not return early if we fail to start this, since it's possible that
// this service doesn't exist on the system, which is a valid scenario