Sample Header Ad - 728x90

What are pid and lock files for?

106 votes
3 answers
109694 views
I often see that programs specify pid and lock files. And I'm not quite sure what they do. For example, when compiling nginx: --pid-path=/var/run/nginx.pid \ --lock-path=/var/lock/nginx.lock \ Can somebody shed some light on this one?
Asked by Stann (2209 rep)
May 7, 2011, 08:19 PM
Last activity: Mar 17, 2021, 05:58 PM