#!/bin/bash set -e DIR="$( cd "$( dirname "$(realpath "${BASH_SOURCE[0]}")" )" &>/dev/null && pwd )" PROGNAME="$0" . "$DIR/lib.bash" configs=() usage() { cat </dev/null; then die "process already running" fi worker_args= [ "$VERBOSE" = "1" ] && worker_args="-v" for name in "${configs[@]}"; do echoinfo "starting worker $name..." $DIR/ipcam_motion_worker.sh $worker_args -c "$HOME/.config/ipcam_motion_worker/$name.txt" --allow-multiple done