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