[Fai-commit] r4066 - trunk/lib

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Sat Oct 7 13:35:05 UTC 2006


Author: lange
Date: 2006-10-07 13:35:05 +0000 (Sat, 07 Oct 2006)
New Revision: 4066

Modified:
   trunk/lib/subroutines
Log:
prevent multiple fai softupdate running simultaneously (closes: #390680)


Modified: trunk/lib/subroutines
===================================================================
--- trunk/lib/subroutines	2006-10-07 13:00:43 UTC (rev 4065)
+++ trunk/lib/subroutines	2006-10-07 13:35:05 UTC (rev 4066)
@@ -489,6 +489,7 @@
 
     local stamp=/var/run/fai/fai_softupdate_is_running
 
+    [ -f "$stamp" ] && die "Another fai softupdate is already running. Aborting."
     > $stamp
     cp -p /var/lib/fai/disk_var.sh $LOGDIR # use the last disk_var during update
 




More information about the Fai-commit mailing list