One common method is for your servers to attempt to open() an appropriately named file under /var/lock/subsystem using O_EXCL|O_CREAT. If that fails you can assume another instance is already running and has already claimed the corresponding /dev entry. Remember to delete your lock files on exit...