update.sh/gc.sh: remove more stale temp files
commit54632d699db2778f9685d1f480d030dfc50ee4f2
authorKyle J. McKay <mackyle@gmail.com>
Wed, 18 Feb 2015 21:28:05 +0000 (18 13:28 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Wed, 18 Feb 2015 21:28:05 +0000 (18 13:28 -0800)
tree23361cdcc7c4749703ce284839d85bae32503a4f
parent685cfb9d06ed82ee3735af1e758e8ed949ec4f29
update.sh/gc.sh: remove more stale temp files

When update.sh first starts running, any preexisting tmp_pack_XXXXXX
or tmp_idx_XXXXXX files are known to be garbage since pushes are not
allowed and the previous update.sh is obviously not running anymore.

Therefore remove any such temp files found when update.sh starts
running.

Additionally, have gc.sh clean up any stale tmp_bitmap_XXXXXX files
it finds that are at least 12 hours old.
jobd/gc.sh
jobd/update.sh