[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Deleting a file/directory on startup



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 redhat com>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]