Stale lock files

Charles Howse
2009-06-27T15:12:59+00:00

Hi,
What are stale lock files?
I've been having them for a few weeks now, they need to go away!


root@curly /root# portupgrade -a
** Stale lock file was found. Removed.
** Stale lock file was found. Removed.
[...]

root@curly /root# portversion -c
** Stale lock file was found. Removed.
#
#  p5-BerkeleyDB
#  needs updating (port has 0.39)
#
pkgs="$pkgs p5-BerkeleyDB-0.38"

#
#  portaudit
#  needs updating (port has 0.5.13)
#
pkgs="$pkgs portaudit-0.5.12"

#
#  ruby
#  needs updating (port has 1.8.7.160-3,1)
#
pkgs="$pkgs ruby-1.8.7.160-1,1"


if [ X"$pkgs" != X"" ]; then
  portupgrade "$@" $pkgs
fi


Thanks,
Charles




Re: Stale lock files by Polytropon on 2009-06-27T15:30:30+00:00
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.



http://lists.freebsd.org/mailman/listinfo/freebsd-questions

Stale lock files by Robert Huff on 2009-06-27T15:42:45+00:00

Charles Howse writes:

>  What are stale lock files?
>  I've been having them for a few weeks now, they need to go away!
>  
>  root@curly /root# portupgrade -a
>  ** Stale lock file was found. Removed.
>  ** Stale lock file was found. Removed.
>  [...]
>  
>  root@curly /root# portversion -c
>  ** Stale lock file was found. Removed.

	These are related to a (harmless) twitch in a recent version of
ruby.  Updating to the latest version fixed it for me.


					Robert Huff


Re: Stale lock files by Charles Howse on 2009-06-27T20:34:19+00:00

On Jun 27, 2009, at 10:42 AM, Robert Huff wrote:

>
> Charles Howse writes:
>
>> What are stale lock files?
>> I've been having them for a few weeks now, they need to go away!
>>
>> root@curly /root# portupgrade -a
>> ** Stale lock file was found. Removed.
>> ** Stale lock file was found. Removed.
>> [...]
>>
>> root@curly /root# portversion -c
>> ** Stale lock file was found. Removed.
>
> 	These are related to a (harmless) twitch in a recent version of
> ruby.  Updating to the latest version fixed it for me.

Thanks Robert and Polytropon,
Running 'portversion -c' after 'portupgrade -a' no longer shows any  
stale lock files.
Just wondering...is there any utility to find and remove these things?
Maybe a reboot?


Re: Stale lock files by Robert Huff on 2009-06-27T20:45:47+00:00

Charles Howse writes:

>  >> ** Stale lock file was found. Removed.
>  >
>  > 	These are related to a (harmless) twitch in a recent version of
>  > ruby.  Updating to the latest version fixed it for me.
>  
>  Running 'portversion -c' after 'portupgrade -a' no longer shows
>  any stale lock files.
>  Just wondering...is there any utility to find and remove these
>  things?  Maybe a reboot?

	A successful run -after- the aforementioned ruby upgrade should
remove all the laggards.


					Robert Huff

Loading


$ This page is proudly powered by www.pubbs.net, you can see more at freebsd archive | Partners: Global Manufacturers