diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2023-02-05 03:00:54 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2023-02-05 03:00:54 +0300 |
commit | 7605ec06d80890e4f7b95db005dfd0db27b69048 (patch) | |
tree | ff89c42562c091fe865252a0e6105bbafb691e1d /tools/ipcam_motion_worker_multiple.sh | |
parent | 378c912dd52072ed0dc86f00c4b4483bda615096 (diff) |
ipcam_server: motion queue fix
Diffstat (limited to 'tools/ipcam_motion_worker_multiple.sh')
-rwxr-xr-x | tools/ipcam_motion_worker_multiple.sh | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/tools/ipcam_motion_worker_multiple.sh b/tools/ipcam_motion_worker_multiple.sh deleted file mode 100755 index 5da6974..0000000 --- a/tools/ipcam_motion_worker_multiple.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/bash - -set -e - -DIR="$( cd "$( dirname "$(realpath "${BASH_SOURCE[0]}")" )" &>/dev/null && pwd )" -PROGNAME="$0" - -. "$DIR/lib.bash" - -configs=() - -usage() { - cat <<EOF -usage: $PROGNAME [OPTIONS] CONFIG_NAME ... - -Options: - -v be verbose -EOF - exit 1 -} - -[[ $# -lt 1 ]] && usage - -while [[ $# -gt 0 ]]; do - case $1 in - -v) - VERBOSE=1 - shift - ;; - - *) - configs+=("$1") - shift - ;; - esac -done - -[ -z "$configs" ] && die "no config files supplied" - -if pidof -o %PPID -x "$(basename "${BASH_SOURCE[0]}")" >/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 |