From 2cc57eeb9d29abd2c1a541a3d9e4cec342247014 Mon Sep 17 00:00:00 2001 From: Jafaruddin Lie <jafar.lie@monash.edu> Date: Tue, 20 Mar 2018 11:00:06 +1100 Subject: [PATCH] updated epilog with cleanup task --- roles/slurm-common/templates/slurm.epilog.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/slurm-common/templates/slurm.epilog.j2 b/roles/slurm-common/templates/slurm.epilog.j2 index cf17eceb..0c6cbce7 100644 --- a/roles/slurm-common/templates/slurm.epilog.j2 +++ b/roles/slurm-common/templates/slurm.epilog.j2 @@ -25,6 +25,9 @@ XUNIXFILENAME="X"$XSESSION find /tmp/ -name $XLOCKFILENAME -exec rm -rf {} \; find /tmp/.X11-unix -name $XUNIXFILENAME -exec rm -rf {} \; +# Now we clean up +rm -rf /home/${SLURM_JOB_USER}/.vnc/xorg-${SLURM_JOB_ID} + # echo 1 to drop page cache /bin/sync /bin/echo 1 > /proc/sys/vm/drop_caches -- GitLab