From 0bd1a1e649c66d3c1976ec07c06b3f759e78bb03 Mon Sep 17 00:00:00 2001 From: Peter Mikus Date: Tue, 23 May 2017 07:40:41 +0000 Subject: Modify garbage cleaning on VIRL Decrease the threshold of old session directories and add cleaning of non-empty directories Change-Id: I77950065e5e09aaaf38cf2d9cb3f4c3f8cdcf58c Signed-off-by: Peter Mikus --- resources/tools/testbed-setup/playbooks/01-host-setup.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'resources/tools/testbed-setup') diff --git a/resources/tools/testbed-setup/playbooks/01-host-setup.yaml b/resources/tools/testbed-setup/playbooks/01-host-setup.yaml index 93b2246ed8..fdf03b2f67 100644 --- a/resources/tools/testbed-setup/playbooks/01-host-setup.yaml +++ b/resources/tools/testbed-setup/playbooks/01-host-setup.yaml @@ -60,7 +60,7 @@ name: NFS scratch dir garbage collector minute: 0 hour: 0 - job: "find /nfs/scratch/ -type d -mtime +14 -name 'session-*' -delete" + job: "find /nfs/scratch/ -type d -mtime +1 -name 'session-*' -exec rm -r "{}" \;" - hosts: tg:sut remote_user: testuser sudo: yes -- cgit 1.2.3-korg