server/process/orders-process
2020-08-16 16:00:27 +02:00

8 lines
179 B
Bash
Executable file

#!/bin/sh
SCRIPT=$(readlink -f "$0")
SCRDIR=$(dirname "$SCRIPT")
cd "$SCRDIR" || exit
lockfile -r3 -l120 orders.queue.lock
python process-orders.py "$@"
rm -f orders.queue.lock