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