diff --git a/0053-add-slurmrestd-log.patch b/0053-add-slurmrestd-log.patch new file mode 100644 index 0000000000000000000000000000000000000000..aa812a608a994802567e862d942d5ec1a6b28ce8 --- /dev/null +++ b/0053-add-slurmrestd-log.patch @@ -0,0 +1,31 @@ +From b63ed8da32fbebc26d2774c28a3c97c7331d8349 Mon Sep 17 00:00:00 2001 +From: motodiary +Date: Thu, 20 Jun 2024 10:33:56 +0800 +Subject: [PATCH] add slurmrestd.log + +--- + src/slurmrestd/slurmrestd.c | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/src/slurmrestd/slurmrestd.c b/src/slurmrestd/slurmrestd.c +index 535f590..e42156e 100644 +--- a/src/slurmrestd/slurmrestd.c ++++ b/src/slurmrestd/slurmrestd.c +@@ -220,8 +220,13 @@ static void _setup_logging(int argc, char **argv) + logopt.stderr_level += debug_level; + } + +- if (log_init(xbasename(argv[0]), logopt, fac, NULL)) ++ /*create slurmrestd.log*/ ++ logopt.logfile_level += debug_level; ++ char* logfile = xstrdup("/var/log/slurm/slurmrestd.log"); ++ if (log_init(xbasename(argv[0]), logopt, fac, logfile)) + fatal("Unable to setup logging: %m"); ++ ++ xfree(logfile); + } + + /* +-- +2.33.0 + diff --git a/slurm.spec b/slurm.spec index 3782f717b60cbeb7a9ede79065f5310435c7d66a..15dbf41459a60a0f05e8cda9aedf63c3c447ec6d 100644 --- a/slurm.spec +++ b/slurm.spec @@ -1,6 +1,6 @@ Name: slurm Version: 21.08.8 -%define rel 55 +%define rel 56 Release: %{rel}%{?dist} Summary: Slurm Workload Manager @@ -68,6 +68,7 @@ Patch49: 0049-fix-the-preempt-error.patch Patch50: 0050-enable-col_data-empty-check.patch Patch51: 0051-fix-the-archive-error.patch Patch52: 0052-fix-sacctmgr-delete-error-with-flags-specified.patch +Patch53: 0053-add-slurmrestd-log.patch # build options .rpmmacros options change to default action # ==================== ==================== ======================== @@ -760,6 +761,9 @@ rm -rf %{buildroot} %systemd_postun_with_restart slurmdbd.service %changelog +* Thu Jun 20 2024 Xing Liu - 21.08.8-56 +- add slurmrestd.log + * Wed Jun 19 2024 Xing Liu - 21.08.8-55 - fix sacctmgr delete error with flags specified