[Fai-commit] r5336 - in trunk: debian lib

Thomas Lange lange at alioth.debian.org
Thu Apr 16 14:06:40 UTC 2009


Author: lange
Date: 2009-04-16 14:06:40 +0000 (Thu, 16 Apr 2009)
New Revision: 5336

Modified:
   trunk/debian/changelog
   trunk/lib/subroutines
Log:
subroutines: add trap for softupdates (closes: #449236)

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2009-04-16 13:07:16 UTC (rev 5335)
+++ trunk/debian/changelog	2009-04-16 14:06:40 UTC (rev 5336)
@@ -31,6 +31,7 @@
     in a file called class/*.var (closes: #515139),
     create /var/run/fai (closes: #515775)
   * fai-client.dirs, fai-server.dirs: remove /var/run/fai
+  * subroutines: add trap for softupdates (closes: #449236)
 
   [ Michael Tautschnig ]
   * setup-storage: Bumped version number to 1.0.4

Modified: trunk/lib/subroutines
===================================================================
--- trunk/lib/subroutines	2009-04-16 13:07:16 UTC (rev 5335)
+++ trunk/lib/subroutines	2009-04-16 14:06:40 UTC (rev 5336)
@@ -531,6 +531,7 @@
 task_softupdate() {
 
     stamp=/var/run/fai/fai_softupdate_is_running
+    trap "rm -f $stamp" INT QUIT EXIT
 
     [ -f "$stamp" ] && die "Another fai softupdate is already running. Aborting."
     echo $$ > $stamp




More information about the Fai-commit mailing list