Add locking to invirt-cache-acls 0.1.45
authorAdam Glasgall <glasgall@mit.edu>
Sat, 6 Feb 2016 17:39:35 +0000 (12:39 -0500)
committerAdam Glasgall <glasgall@mit.edu>
Sat, 6 Feb 2016 17:40:14 +0000 (12:40 -0500)
debian/changelog
debian/control
invirt-cache-acls

index 4fc161a..d016a44 100644 (file)
@@ -1,3 +1,11 @@
+invirt-web (0.1.45) precise; urgency=medium
+
+  * Add trusty preseed files that we apparently forgot to package
+  * Add locking to invirt-cache-acls so that when it takes more than five
+    minutes, jobs don't pile up and make the machine thrash to death
+
+ -- Adam Glasgall <glasgall@mit.edu>  Sat, 06 Feb 2016 12:37:27 -0500
+
 invirt-web (0.1.44) unstable; urgency=medium
 
   * Remove quadratic-complexity keylogger from Konami easter egg.
index be460f3..53e89e0 100644 (file)
@@ -23,7 +23,9 @@ Depends: ${misc:Depends},
  kstart,
  debathena-afs-config, openafs-modules-dkms,
  mail-transport-agent, subversion, zephyr-clients,
- cron, gitweb
+ cron, gitweb,
+# for with-lock-ex
+ chiark-utils-bin
 Provides: ${diverted-files}
 Conflicts: ${diverted-files}
 Replaces: invirt-web-iptables (<= 0.0.2)
index 79a7650..a8953d4 100755 (executable)
@@ -6,4 +6,4 @@ cells () {
 }
 kinit -k -t /etc/invirt/keytab daemon/$(hostname -f)
 aklog $(cells)
-python /var/www/invirt-web/cache_acls.py
+with-lock-ex -f /run/invirt-cache-acls.lock python /var/www/invirt-web/cache_acls.py