initqueue: add online queue

Harald Hoyer 2015-08-25 11:13:23 +02:00
parent 310574f7ea
commit d3f61fb5cd
1 changed files with 3 additions and 1 deletions

View File

@ -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"