View Single Post
Posts: 13 | Thanked: 0 times | Joined on May 2010
#9
In fact, lock file isn't very good: if the program is killed before it exits voluntarily, the lock file may not be deleted. That forbids the program to start any more!

Better way would be to examine process list and check if the binary is already running. How to do that, then?