From 563a22ad929f32938d33e7b55e3c5fb1372aae49 Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Fri, 27 May 2011 10:36:03 -0700 Subject: [PATCH] no error if sbin/scch not found If checkpoint/blcr is configured. only log that scch is not found using debug() rather than info(). Add documentation about the file. --- doc/man/man5/slurm.conf.5 | 5 ++++- src/plugins/checkpoint/blcr/checkpoint_blcr.c | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/man/man5/slurm.conf.5 b/doc/man/man5/slurm.conf.5 index 29623241b46..a86c0c51a6f 100644 --- a/doc/man/man5/slurm.conf.5 +++ b/doc/man/man5/slurm.conf.5 @@ -204,7 +204,10 @@ Supported values presently include: for AIX systems only .TP \fBcheckpoint/blcr\fR -Berkeley Lab Checkpoint Restart (BLCR) +Berkeley Lab Checkpoint Restart (BLCR). +NOTE: If a file is found at sbin/scch (relative to the SLURM installation +location), it will be executed upon completion of the checkpoint. This can +be a script used for managing the checkpoint files. .TP \fBcheckpoint/none\fR no checkpoint support (default) diff --git a/src/plugins/checkpoint/blcr/checkpoint_blcr.c b/src/plugins/checkpoint/blcr/checkpoint_blcr.c index b1e1ca367d9..7cf7d7b92a4 100644 --- a/src/plugins/checkpoint/blcr/checkpoint_blcr.c +++ b/src/plugins/checkpoint/blcr/checkpoint_blcr.c @@ -698,7 +698,10 @@ static int _on_ckpt_complete(uint32_t group_id, uint32_t user_id, pid_t cpid; if (access(scch_path, R_OK | X_OK) < 0) { - info("Access denied for %s: %m", scch_path); + if (errno == ENOENT) + debug("checkpoint/blcr: file %s not found", scch_path); + else + info("Access denied for %s: %m", scch_path); return SLURM_ERROR; } -- GitLab