Differences between current version and revision by previous author of NutNotes.
Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History
Newer page: | version 8 | Last edited on Saturday, May 8, 2010 7:53:58 pm | by GlennRamsey | |
Older page: | version 5 | Last edited on Friday, September 14, 2007 12:13:34 pm | by JohnMcPherson | Revert |
@@ -84,8 +84,23 @@
AT ONLINE * CANCEL-TIMER resume
AT ONLINE * EXECUTE resume
AT FSD * EXECUTE forced-shutdown
</verbatim>
+
+ GlennRamsey - On Ubuntu 8.04 the above script doesn't work. According to the man page the line:
+ <verbatim>
+ AT ONLINE * CANCEL-TIMER resume
+ </verbatim>
+ should be:
+ <verbatim>
+ AT ONLINE * CANCEL-TIMER early-shutdown resume
+ </verbatim>
+ but that seemed to cause a problem with cancelling the shutdown, after 30s had elapsed
+ <verbatim>
+ AT ONLINE * CANCEL-TIMER early-shutdown
+ </verbatim>
+seems to work properly. I suspect the issue was related to the 'resume' command being given by both 'AT ONLINE' events.
+
''/usr/local/bin/upssched-cmd''
<verbatim>
#!/bin/bash
@@ -109,8 +124,15 @@
logger -t upssched-cmd "Unknown command: ${1}"
;;
esac
</verbatim>
+
+!! Notes
+
+On Ubuntu 8.04 I had to add 'RUN_AS_USER root' to upsmon.conf in order for the early shutdown script to work. I guess one could achieve the same effect by giving the nut user permission to run shutdown command. -- GlennRamsey
+
+The Socomec NETYS PE UPS available from Dick Smith works with nut using the megatec_usb driver. -- GlennRamsey
+
---
Part of CategorySystemAdministration