diff --git a/root/etc/cont-init.d/50-diskover-config b/root/etc/cont-init.d/50-diskover-config index 2c4bb1d..cbd83be 100644 --- a/root/etc/cont-init.d/50-diskover-config +++ b/root/etc/cont-init.d/50-diskover-config @@ -61,11 +61,17 @@ chown -R abc:abc \ /app/diskover \ /config -# run initial retrieval +# run initial retrieval or just start some worker bots if [ ${DISKOVER_CONF[RUN_ON_START]} == true ]; then echo "Initial run of dispatcher in progress" # sleep to allow time for elasticsearch to start sleep 10 exec \ s6-setuidgid abc /app/dispatcher.sh >> /config/log/diskover/dispatcher.log 2>&1 & -fi +else + echo "Starting worker bots" + # sleep to allow time for elasticsearch to start + sleep 10 + exec \ + s6-setuidgid abc cd /app/diskover && ./diskover-bot-launcher.sh +fi \ No newline at end of file