1
0
mirror of https://github.com/ShadowKatStudios/OC-Minitel.git synced 2024-11-24 02:58:05 +11:00
OC-Minitel/realtime/OpenOS/usr/man/realtime-relay

27 lines
1.0 KiB
Plaintext
Raw Normal View History

2019-10-24 21:38:30 +11:00
# realtime-relay
realtime relay daemon for OpenOS
realtime-relay is both a Minitel realtime server and client; allowing both synchronisation with another machine, and other machines to synchronise with the local machine's clock.
## Usage
realtime-relay is implemented as an rc service, and as such, to start it one can use the usual rc commands:
rc realtime-relay start
rc realtime-relay stop
rc realtime-relay enable
rc realtime-relay disable
## Configuration
realtime-relay includes a configuration file at */etc/realtime-relay.cfg*; as a Lua table. It contains the following fields:
- **host**: The host to synchronise the local real-time clock with.
- **port**: The port to communicate with *host* on.
- **sync**: Whether to synchronise clocks with *host*.
- **frequency**: The time between automatic time synchronisations.
- **offset**: The offset time, in hours.
By default, realtime-relay will only act as a server, as using it as a client requires both a *host* being set, and *sync* being enabled.