data.sync.lockserver

This program is called remotely (via SSH) to manage station locks for synchronization. It acquires locks (for all time on time-based directories), in either read (server copy authoritative) or read/write (client copy authoritative).

The terminal to is called on (i.e. the SSH connection) is used for communication to the remote lock manager. This communication consists for lock directory requests, releases, acknowledgments, and a periodic heartbeat. If the heartbeat times out, locks are released. Note that if the terminal is closed itself (SIGHUP) the lock is also released.

Usage

Created by the remote lock controller via ssh like:

ssh aerolab6 '$DB/bin/sync/data.sync.lockserver'