[Nut-upsuser] Timer Daemon doesn't start

Roger Price roger at rogerprice.org
Wed May 23 10:49:22 UTC 2012


On Wed, 23 May 2012, Stefan Kuhn wrote:

> May 23 10:58:07 s-monitor1 upssched-cmd: Calling upssched-cmd ONBATT

This is good news, since it says that the script gets called with 
the parameter ONBATT.  Now you need to find out what the script does 
with this parameter.  Two suggestions:

1. At key positions in the script add the lines

   # Debugging
   logger -t upssched-cmd Doing whatever...

2. Try adding the instruction

    set -x

at the top of the script and call it manually from the command line 
with "upssched-cmd ONBATT".  You should get a detailed trace of the 
script.

Roger



More information about the Nut-upsuser mailing list