Don't append to the .running file, not needed
authorSteve McIntyre <steve@einval.com>
Wed, 24 Oct 2018 23:14:20 +0000 (00:14 +0100)
committerSteve McIntyre <steve@einval.com>
Wed, 24 Oct 2018 23:14:20 +0000 (00:14 +0100)
Just redirect straight

bin/get_package

index 29a4fc6..8a636a4 100755 (executable)
@@ -32,7 +32,7 @@ while true; do
 
     # else
     echo "$DATE: Queued package $NUM: $PKG_VER_ARCH on $CLIENT" >> $LOGFILE
-    echo "$DATE: Queued package $NUM: $PKG_VER_ARCH on $CLIENT" >> $STATEDIR/$NUM.running
+    echo "$DATE: Queued package $NUM: $PKG_VER_ARCH on $CLIENT" > $STATEDIR/$NUM.running
     echo "$NUM $PKG_VER_ARCH"
     exit 0
 done