server/process/orders-process

7 lines
149 B
Bash
Executable file

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