The usual technique is to write a pid file in /var/run/name.pid. When the program is started check the running status of the process id found in the pid file. If it's dead remove the lock file and proceed, otherwise exit. -- John Dennis <jdennis at redhat.com>