Wydawca (split by section):   Section:   Chapter:FastBack: configuring   Up: configuring   FastForward: wydawca.rc   Contents: Table of ContentsIndex: Concept Index

4.7 Locking Configuration

To avoid a possibility of two wydawca instances handling the same triplet, wydawca locks the spool before processing it. This is done by creating a lock file. The parameters of the locking subsystem are configured via the locking statement:

Config: locking { … }
locking {
  enable arg:boolean;
  directory dir:string;
  expire-time time:interval;
  timeout time:interval;
}
Config: locking: enable bool

Enable or disable locking. By default it is enabled.

Config: locking: directory dir

Sets directory for lock files. Make sure dir is writable for the user (or group) wydawca runs at (see user privileges.

The default directory is localstatedir/lock/wydawca.

Config: locking: expire-time time

Sets expiration interval for lock files. An existing lock file older than time is considered stale and removed.

See time interval specification, for the syntax of time.

Config: locking: timeout time

Timeout for acquiring locks. If a lock file cannot be acquired during this time, wydawca reports error and exits.

See time interval specification, for the syntax of time.

Wydawca (split by section):   Section:   Chapter:FastBack: configuring   Up: configuring   FastForward: wydawca.rc   Contents: Table of ContentsIndex: Concept Index