initqueue: add online queue
parent
310574f7ea
commit
d3f61fb5cd
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue