summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-02-05 03:00:54 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-02-05 03:00:54 +0300
commit7605ec06d80890e4f7b95db005dfd0db27b69048 (patch)
treeff89c42562c091fe865252a0e6105bbafb691e1d /tools
parent378c912dd52072ed0dc86f00c4b4483bda615096 (diff)
ipcam_server: motion queue fix
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ipcam_motion_worker_multiple.sh49
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