nut: refactor nut-monitor uci config file
authorPascal Coudurier <[email protected]>
Tue, 4 Jan 2022 13:11:14 +0000 (14:11 +0100)
committerRosen Penev <[email protected]>
Wed, 12 Jan 2022 00:27:19 +0000 (16:27 -0800)
Convert notifyflags options to lists as supported by the init script, so multiple options can be chosen.
Add SYSLOG default option to individuals notifyflags instead of deprecated flag 1|0.
Add comment for defaultnotify and individuals notifyflags about possible values.

Signed-off-by: Pascal Coudurier <[email protected]>
net/nut/Makefile
net/nut/files/nut_monitor

index 9a12b927f40302fc925f4a2c0e1442547c9c37ff..ed065311cce81609927b82a9065e6c8b26cf2c72 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=nut
 PKG_VERSION:=2.7.4
-PKG_RELEASE:=24
+PKG_RELEASE:=25
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://www.networkupstools.org/source/2.7/
index 59e0f360daeeb02b342feaecee12293d7f268522..a3de4f5de403ac091da6a779409ea3ea65be05a0 100644 (file)
@@ -3,7 +3,7 @@
 #      option minsupplies 1
 #      option shutdowncmd '/usr/sbin/nutshutdown'
 #      option notifycmd /path/to/cmd
-#      list defaultnotify SYSLOG
+#      list defaultnotify SYSLOG # can be SYSLOG or EXEC or IGNORE
 #      option pollfreq 5
 #      option pollfreqalert 5
 #      option hostsync 15
 #      option replbattmsg "replace battery message"
 #      option nocommmsg "no communications message"
 #      option noparentmsg "no parent message"
-#      option onlinenotify "online notify flag 1|0"
-#      option onbattnotify "on battery notify flag 1|0"
-#      option lowbattnotify "low battery notify flag 1|0"
-#      option fsdnotify "forced shutdown notify flag 1|0"
-#      option comoknotify "communications restored notify flag 1|0"
-#      option combadnotify "communications bad notify flag 1|0"
-#      option shutdownotify "shutdown notify flag 1|0"
-#      option replbattnotify "replace battery notify flag 1|0"
-#      option nocommnotify "no communications notify flag 1|0"
-#      option noparentnotify "no parent notify flag 1|0"
+#      list onlinenotify SYSLOG # can be SYSLOG or EXEC or IGNORE
+#      list onbattnotify SYSLOG # can be SYSLOG or EXEC or IGNORE
+#      list lowbattnotify SYSLOG # can be SYSLOG or EXEC or IGNORE
+#      list fsdnotify SYSLOG # can be SYSLOG or EXEC or IGNORE
+#      list comoknotify SYSLOG # can be SYSLOG or EXEC or IGNORE
+#      list combadnotify SYSLOG # can be SYSLOG or EXEC or IGNORE
+#      list shutdownotify SYSLOG # can be SYSLOG or EXEC or IGNORE
+#      list replbattnotify SYSLOG # can be SYSLOG or EXEC or IGNORE
+#      list nocommnotify SYSLOG # can be SYSLOG or EXEC or IGNORE
+#      list noparentnotify SYSLOG # can be SYSLOG or EXEC or IGNORE
 #      option rbwarntime 4200 # replace battery warn time
 #      option nocommwarntime 300 # no communications warn time
 #      option finaldelay 5 # final delay