Modify garbage cleaning on VIRL 35/6835/2
authorPeter Mikus <pmikus@cisco.com>
Tue, 23 May 2017 07:40:41 +0000 (07:40 +0000)
committerPeter Mikus <pmikus@cisco.com>
Tue, 23 May 2017 07:42:49 +0000 (07:42 +0000)
Decrease the threshold of old session directories and add cleaning of non-empty directories

Change-Id: I77950065e5e09aaaf38cf2d9cb3f4c3f8cdcf58c
Signed-off-by: Peter Mikus <pmikus@cisco.com>
resources/tools/testbed-setup/playbooks/01-host-setup.yaml

index 93b2246..fdf03b2 100644 (file)
@@ -60,7 +60,7 @@
     name: NFS scratch dir garbage collector
     minute: 0
     hour: 0
     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
 - hosts: tg:sut
   remote_user: testuser
   sudo: yes

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.