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

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