Blame SOURCES/0318-initqueue-add-online-queue.patch

64b87c
From d3f61fb5cdaa56053ae8de0203a13722a7fe717a Mon Sep 17 00:00:00 2001
64b87c
From: Harald Hoyer <harald@redhat.com>
64b87c
Date: Tue, 25 Aug 2015 11:13:23 +0200
64b87c
Subject: [PATCH] initqueue: add online queue
64b87c
64b87c
---
64b87c
 modules.d/99base/initqueue.sh | 4 +++-
64b87c
 1 file changed, 3 insertions(+), 1 deletion(-)
64b87c
64b87c
diff --git a/modules.d/99base/initqueue.sh b/modules.d/99base/initqueue.sh
64b87c
index 854a36a..0f96fac 100755
64b87c
--- a/modules.d/99base/initqueue.sh
64b87c
+++ b/modules.d/99base/initqueue.sh
64b87c
@@ -15,6 +15,8 @@ while [ $# -gt 0 ]; do
64b87c
     case "$1" in
64b87c
         --onetime)
64b87c
             onetime="yes";;
64b87c
+        --online)
64b87c
+            qname="/online";;
64b87c
         --settled)
64b87c
             qname="/settled";;
64b87c
         --finished)
64b87c
@@ -48,7 +50,7 @@ shift
64b87c
 {
64b87c
     [ -n "$onetime" ] && echo '[ -e "$job" ] && rm -f -- "$job"'
64b87c
     [ -n "$env" ] && echo "$env"
64b87c
-    echo "$exe $@"
64b87c
+    echo "$exe" "$@"
64b87c
 } > "/tmp/$$-${job}.sh"
64b87c
 
64b87c
 mv -f "/tmp/$$-${job}.sh" "$hookdir/initqueue${qname}/${job}.sh"