While testing with the SMEServer v9.1 (circa March 2016), the above <tt>nutUPS.cmd</tt> script with entries in <tt>01CONFIG</tt> template fails due to lack of permissions at the <tt<shutdownnow</tt> case at:
+
/usr/bin/sudo /sbin/e-smith/signal-event halt
+
+
Tweaking the /etc/sudoers did does not mitigate it.
+
+
The error in the /var/log/messages is:
+
<pre>
+
Mar 14 13:22:16 svr01 upssched[3507]: Timer daemon started
+
Mar 14 13:22:16 svr01 upssched[3507]: New timer: shutdownnow (120 seconds)
+
Mar 14 13:25:16 svr01 upssched[3507]: Event: shutdownnow
+
Mar 14 13:25:16 svr01 wall[3539]: wall: user nut broadcasted 1 lines (70 chars)
+
Mar 14 13:25:16 svr01 upssched[3507]: exec_cmd(/sbin/e-smith/nutUPS.cmd shutdownnow) returned 1