diff options
Diffstat (limited to 'bin/ncp/CONFIG/nc-previews-auto.sh')
-rw-r--r-- | bin/ncp/CONFIG/nc-previews-auto.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/ncp/CONFIG/nc-previews-auto.sh b/bin/ncp/CONFIG/nc-previews-auto.sh index 43d876ff..10384530 100644 --- a/bin/ncp/CONFIG/nc-previews-auto.sh +++ b/bin/ncp/CONFIG/nc-previews-auto.sh @@ -29,7 +29,13 @@ configure() cat > /usr/local/bin/nc-previews <<EOF #!/bin/bash echo -e "\n[ nc-previews-auto ]" >> /var/log/ncp.log -ionice -c3 nice -n20 /usr/local/bin/ncc preview:pre-generate -n -vvv 2>&1 >>/var/log/ncp.log & +( + for i in \$(seq 1 \$(nproc)); do + ionice -c3 nice -n20 /usr/local/bin/ncc preview:pre-generate -n -vvv & + done + wait +) 2>&1 >>/var/log/ncp.log & + PID=\$! [[ "$RUNTIME" != 0 ]] && { for i in \$(seq 1 1 $RUNTIME); do |