Name

LockType — specify file locking method to use

SYNOPSIS

flock | fcntl | none

DESCRIPTION

The directive specifies the file locking method to use. flock is the default and works well with standard setups.

fcntl is used with NFS. In case of NFS, both the NFS client and server need to run the lock daemon (lockd).

none can be used to turn off locking completely. This is never recommended, unless you only want to see if the locking is causing system hangs.

DIRECTIVE TYPE AND DEFAULT VALUE

Global directive

EXAMPLES

Example: Setting LockType

Put the following in interchange.cfg:

LockType fcntl

NOTES

Although this directive was added in Interchange 4.7, due to an error later discovered, the directive started working properly with the release of Interchange 4.8.6.

If you are only accessing sessions on an NFS-mounted directory, but the rest of Interchange is on the local filesystem, you can set the SessionType directive to NFS instead. That would enable fcntl locking for sessions on a per-catalog basis only.

AVAILABILITY

LockType is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Config.pm
Line 405

['LockType',         undef,               $Global::Windows ? 'none' : ''],

AUTHORS

Interchange Development Group

SEE ALSO

Windows(7ic), SessionType(7ic)

DocBook! Interchange!