projects
/
gnt-info
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
added word-boundries to catch only full tap names
[gnt-info]
/
gnt-job-purge-older-than.sh
1
#!/bin/sh
2
3
job=$1
4
5
test -z "$job" && echo "Usage: $0 job_id" && exit 1
6
7
find /var/lib/ganeti/queue/ -maxdepth 1 -name 'job-*' | sed 's/^.*job-//' | awk -vjob=$job '{ if ( $1 < job ) print "/var/lib/ganeti/queue/job-"$1 }' | xargs --max-args=10 echo rm -v
8
9