#!/bin/sh -e ( if [ "$1" != "constraint" ]; then pcs $@ exit $? fi flock -e 200 pcs $@ ) 200>/tmp/pcs.lock