DocLinks >> _bug0020 >> _bug0025 >> _bug0027 >> _bug0015 

TB Wiki

Login

Uptime Macro Help

Show uptime for the machine that this wiki is running on.

This just executes the Linux 'uptime' command, and outputs that string.

NOTE: I had use 'systemctl edit apache2.service' and add the following to the systemd secruity configuration, to get it to work: (otherwise, /proc/uptime and /proc/loadavg are not visible to /usr/bin/uptime, which is running under apache2 security protections)

[Service]
ProcSubset=all
ProtectProc=invisible

then: systemctl daemon-reload ; systemctl restart apache2

Back to page: SystemInfo

TBWiki engine 2.0.1 by Tim Bird