diff --git a/ChangeLog b/ChangeLog
index c189c90b075594cd64f955966831e3eda4b3e2d3..1c939e8fc4a9f649d65a842953282366997fae97 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-08-09  Per Cederqvist  <ceder@ryttargardskyrkan.se>
+
+	The "start immediately if the previous backup took more than 24
+	hours" logic did not work since the flag file was never created.
+	* backup-repeatedly: Touch the $LASTSTART flag file when a backup
+	run starts, so that the --start-time option can work as intended.
+
 2007-08-07  Per Cederqvist  <ceder@ryttargardskyrkan.se>
 
 	Improve the --start-time option.
diff --git a/backup-repeatedly b/backup-repeatedly
index e01e84fb4ffe4f51b85252a294bf0d2eaadd80c9..fc16a71e047ab3c5d62c18eede22c48cffcf6e29 100755
--- a/backup-repeatedly
+++ b/backup-repeatedly
@@ -53,6 +53,8 @@ do
 
   ctr=`expr $ctr + 1`
 
+  touch $LASTSTART
+
   echo
   echo Running all jobs.  Repeat count: $ctr.
   echo