[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Deleting a file/directory on startup
- From: John Dennis <jdennis redhat com>
- To: Development discussions related to Fedora <fedora-devel-list redhat com>
- Subject: Re: Deleting a file/directory on startup
- Date: Fri, 11 Jan 2008 13:54:50 -0500
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]