Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Jun 2009 17:29:25 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Charles Howse <chowse@charter.net>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Stale lock files
Message-ID:  <20090627172925.cfc9609e.freebsd@edvax.de>
In-Reply-To: <B860EFBF-4A21-4293-9AF9-F7C14309519D@charter.net>
References:  <B860EFBF-4A21-4293-9AF9-F7C14309519D@charter.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 27 Jun 2009 10:00:24 -0500, Charles Howse <chowse@charter.net> wrote:
> What are stale lock files?
> I've been having them for a few weeks now, they need to go away!

Lock files are used by several programs to indicate file-wise that
they are running. The lock file is created when the program starts,
and usually deleted when it ends. If it is interrupted (due to an
error or ^C), the lock file isn't removed.

Most programs remove stale lock files by theirselves when they are
started again (e. g. fetchmail).

It's possible that there are programs that refuse to start, because
the lock file (falsely) indicates that the program is already running.

The location of the lock file seems to depend on the respective
program.



-- 
Polytropon
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090627172925.cfc9609e.freebsd>