Bug#330220: [Logcheck-devel] Bug#330220: logcheck: Fails to obtain lockfile
Todd Troxell
ttroxell at debian.org
Sat Oct 15 22:51:52 UTC 2005
Hi Mark,
On Mon, Sep 26, 2005 at 08:17:40PM +0000, Mark Brown wrote:
> Every time locheck runs from cron on my system it generates a mail
> reporting:
>
> | Failed to get lockfile: /var/lock/logcheck/logcheck.lock
>
> This only appears to happen when running from cron. Attempting to run
> logcheck or lockfile-create by hand seems to work as expected. The
> permissions on the lock directory appear to be fine:
>
> | $ ls -ld /var/lock/logcheck/
> | drwxr-xr-x 2 logcheck logcheck 4096 Sep 26 20:02 /var/lock/logcheck/
>
> so I'm at a bit of a loss trying to explain this. I've not done any
> configuration of logcheck, it's been doing this since it was installed.
This is pretty weird. It would be useful to know if/why thelock is [really]
failing.
I can't seem to reproduce it on my machines.
Do you think you could try changing the lock line(595) to somehting like:
lockfile-create --retry 1 $LOCKFILE >> /tmp/logcheck_error 2>&1
Cheers,
--
Todd Troxell
http://rapidpacket.com/~xtat
More information about the Logcheck-devel
mailing list