What is the best way to prevent a Linux program/daemon from being executed more than once at a given time?