From 92795eb73aac565121275ecfc413d3caa8739cce Mon Sep 17 00:00:00 2001
From: "Gin Tan (Monash University)" <ctan@m3-mgmt1.massive.org.au>
Date: Tue, 11 Jul 2017 14:58:20 +1000
Subject: [PATCH] Removed the /tmp clean-up until the script is sorted

---
 roles/slurm-common/templates/slurm.epilog.j2 | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/roles/slurm-common/templates/slurm.epilog.j2 b/roles/slurm-common/templates/slurm.epilog.j2
index 71b02e52..0c059ae6 100644
--- a/roles/slurm-common/templates/slurm.epilog.j2
+++ b/roles/slurm-common/templates/slurm.epilog.j2
@@ -6,8 +6,9 @@ find /tmp -user ${SLURM_JOB_USER} -name ".esd-*" | xargs rm -rf
 find /tmp -user ${SLURM_JOB_USER} -name ".X*-lock" | xargs rm -rf
 find /tmp/.X11-unix -user ${SLURM_JOB_USER} -name "X*" | xargs rm -rf
 
-# files to be deleted from /tmp after jobs completed
-/bin/find /tmp -user ${SLURM_JOB_USER} -type 'f' -print0 | /usr/bin/xargs -0 -r /bin/rm -f
 
 # echo 1 to drop page cache
-sync; echo 1 > /proc/sys/vm/drop_caches
+/bin/sync
+/bin/echo 1 > /proc/sys/vm/drop_caches
+
+exit 0
-- 
GitLab