Deleting a file/directory on startup

John Dennis jdennis at redhat.com
Fri Jan 11 18:54:50 UTC 2008


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>




More information about the fedora-devel-list mailing list