termy-monitor man page
termy-monitor — TermySequence information monitor
termy-monitor is a utility program executed by termy-server(1) to monitor the local system for useful information to report to terminal clients. This includes the hostname, kernel version, time zone, and primary IP address of the system, but can consist of any number of arbitrary single-line UTF-8 key-value pairs. Run termy-monitor from a shell prompt to see what information is reported.
termy-monitor has two modes of operation. When run with the --initial option, the program should print lines of the form "key=value" on standard output and then exit immediately. When run with no arguments, the program should do the same thing, but may keep running until receipt of SIGTERM or until its standard input is closed. The intent is for the program to print an initial set of values on startup in the first mode, then run continuously in the second mode, printing key-value pairs in response to system changes.
Each termy-server(1) instance forks its own instances of termy-monitor as necessary. In addition, two customizable scripts, monitor-script and attr-script can be used to override or replace termy-monitor entirely, see Files below. On receipt of SIGUSR1, termy-server(1) restarts the monitor program.
It is possible for terminal clients to send commands to the monitor program, which will be written to its standard input, followed by a newline. An advanced monitor program may support commands telling it to report certain data. For example, the default termy-monitor implementation will respond to the command "loadavg" by reporting the system load average every ten seconds for the next half hour.
Print a set of initial key-value pairs immediately and then exit.
Run continuously, printing key-value pairs as changes occur, until standard input is closed or SIGTERM is received. This is the default behavior.
Print basic help
Print version information
Programs executed by termy-server(1) to set system-specific UTF-8 key-value pairs reported to clients. Only the first script found using the order shown is executed. The program should print lines of the form key=value on standard output and must exit quickly. Values output by the program override the values printed by termy-monitor --initial. These scripts are optional and are not required to be present.
Programs executed by termy-server(1) to set system-specific UTF-8 key-value pairs reported to clients. The program should print lines of the form key=value on standard out and may run as long as necessary, however it must exit on receipt of SIGTERM or when its standard input is closed. Only the first script found using the order shown is executed, and if a script is found, termy-monitor is not executed. These scripts are optional and are not required to be present.
The default termy-monitor implementation obtains attributes from the files os-release(5) and machine-info(5) and from calls to uname(3) and getaddrinfo(3). On Linux, netlink(7) is used to monitor for network address changes, and if sd-bus support was compiled in, the D-Bus interfaces org.freedesktop.hostname1 and org.freedesktop.timedate1 are used to monitor for hostname and timezone changes.
A small number of basic attributes, such as the UID, are set directly by termy-server(1) and cannot be changed from the monitor or from scripts.
TermySequence - https://termysequence.io