#!/bin/sh

GDS_LOCK_MGR=`ps ax |grep gds_lock_mgr |grep -v grep`;

if [ "$GDS_LOCK_MGR" != "" ]; then
	echo "It appears you have a gds_lock_manager already running.";
	echo;
	echo "You must cease all InterBase operations to build this port.";
	echo "Make sure nobody is connected to any databases, then use";
	echo "'gds_drop -a' and manually verify (with ipcs) that the";
	echo "semaphores were removed.";
	exit 1;
fi
exit 0

