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