From ffee474af8acd549a3af1f11d057ed2896f40f8b Mon Sep 17 00:00:00 2001 From: Brian Seymour Date: Wed, 24 Oct 2018 18:34:25 -0500 Subject: [PATCH] clear out temp dir of ran user --- lxc/execute | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lxc/execute b/lxc/execute index 83f9378..0b9936a 100755 --- a/lxc/execute +++ b/lxc/execute @@ -86,6 +86,9 @@ lxc-attach -n piston -- \ # process janitor lxc-attach -n piston -- \ - /bin/bash -c "for i in {1..2000}; do pkill -u runner$newinc --signal SIGKILL; done" > /dev/null 2>&1 & + /bin/bash -c "\ + for i in {1..100}; do pkill -u runner$newinc --signal SIGKILL; done ;\ + find /tmp/* -user runner$newinc -exec /bin/rm -rf {} \;\ + " rm -rf $basepath/tmp/$epoch