Talk:Generation_Ships 

Tim's Space 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: System_Info

TBWiki engine 2.0.1 by Tim Bird