On 15/04/2021 08.41, Roger Price wrote:
On Wed, 14 Apr 2021, J Leslie Turriff wrote:
On 2021-04-14 19:14:01 J Leslie Turriff wrote: This might also be useful: http://rogerprice.org/NUT.html
I havn't done any maintenance on that text for a while. I wrote a more complete NUT User's Guide which is at http://rogerprice.org/NUT/ConfigExamples.A5.pdf
I'm reading it. Re "Figure 16: NUT provided script for delayed UPS shutdown." ... «This script is executed late in the system shutdown process, and there is no trace in the systemlog of it’s action. If, like the editor, you believe that shutting off power to a system is a majorevent, and should be logged, then you are invited to replace the script provided by NUT with asystemd service unit as shown in appendix 21 which will log the delayed shutdown command.» Why not use "logger"? NAME logger - enter messages into the system log SYNOPSIS logger [options] [message] DESCRIPTION logger makes entries in the system log. When the optional message argument is present, it is written to the log. If it is not present, and the -f option is not given either, then standard input is logged. -- Cheers / Saludos, Carlos E. R. (from 15.2 x86_64 at Telcontar)