.mhonarc.lck
", when creating/updating
an archive. The lock file insures that only one MHonArc process is
modifying an archive at any given moment. The M2H_LOCKTRIES
environment variable allows you to control how long a given MHonArc
process will wait if an archive is currently locked. If MHonArc can not lock
the archive after the specified number of tries, MHonArc will exit.
The lock file becomes very important if you use MHonArc within a
.forward
file. See the example, Adding a Single Message to Archive, in
the section, Adding New Messages to an Archive, on how one might use
MHonArc in a .forward
file.
SIGABRT
, SIGHUP
, SIGINT
, SIGQUIT
, SIGTERM
.
Possible archive corruption can still occur if a SIGKILL
signal is received
since SIGKILL
s are uncatchable. A SIGKILL
will also prevent MHonArc
from deleting the lock file. This will prevent other invocations of MHonArc
from updating the archive. If this occurs, you need to manually remove the
lock file.