alexmyczko / ruptime

poor man’s ruptime
https://wedonthaveaprivacyproblem.com/ruptime
GNU Affero General Public License v3.0
146 stars 7 forks source link

systems without easy access to /etc #8

Closed alexmyczko closed 7 months ago

alexmyczko commented 7 months ago

alternatively to the config files use defaults system, available with gnustep-base-runtime or standard on macOS

alexmyczko commented 7 months ago

something like:

defaults read ch.aiei.ruptime
{
    HOSTNAMECMD = "'hostname -f'";
    "LC_ALL" = C;
    PORT = 51300;
    SERVER = localhost;
    SPOOL = "/var/spool/ruptime";
}

and

defaults read ch.aiei.ruptime HOSTNAMECMD 'hostname -f'