1 diff -Nuard nut-2.0.1.orig/conf/upsmon.conf nut-2.0.1/conf/upsmon.conf
2 --- nut-2.0.1.orig/conf/upsmon.conf 2004-10-26 11:50:12.410074640 +0200
3 +++ nut-2.0.1/conf/upsmon.conf.sample 2004-10-26 11:51:12.681911928 +0200
6 # This user should not have write access to upsmon.conf.
11 # --------------------------------------------------------------------------
12 # MONITOR <system> <powervalue> <username> <password> ("master"|"slave")
13 diff -Nuard nut-2.0.1.orig/conf/upssched.conf nut-2.0.1/conf/upssched.conf
14 --- nut-2.0.1.orig/conf/upssched.conf 2004-10-26 11:50:12.410074640 +0200
15 +++ nut-2.0.1/conf/upssched.conf.sample 2004-10-26 11:50:23.295419816 +0200
17 # A shell script with a big case..esac construct should work nicely for this.
18 # An example has been provided to help you get started.
20 -CMDSCRIPT /usr/local/ups/bin/upssched-cmd
21 +CMDSCRIPT /usr/sbin/upssched-cmd
23 # ============================================================================
26 # This is commented out by default to make you visit this file and think
27 # about how your system works before potentially opening a hole.
29 -# PIPEFN /var/run/upssched/upssched.pipe
30 +# PIPEFN /var/lib/ups/upssched.pipe
32 # ============================================================================
36 # You should put this in the same directory as PIPEFN.
38 -# LOCKFN /var/run/upssched/upssched.lock
39 +# LOCKFN /var/lib/ups/upssched.lock
41 # ============================================================================
44 # 'ups-back-on-line' via CMDSCRIPT.
46 # AT ONLINE * EXECUTE ups-back-on-line
48 +# ============================================================================
50 +# AT ONBATT * START-TIMER EarlyShutdown 30
51 +# AT ONLINE * CANCEL-TIMER EarlyShutdown
52 +# AT COMMBAD * START-TIMER upsgone 10
53 +# AT COMMOK * CANCEL-TIMER upsgone
54 --- nut-2.2.0/conf/upsmon.conf.sample.orig 2007-07-26 11:15:08.152047877 +0000
55 +++ nut-2.2.0/conf/upsmon.conf.sample 2007-07-26 11:17:20.131913520 +0000
57 # information and ideas, see pager.txt in the docs directory.
60 -# NOTIFYCMD /usr/local/ups/bin/notifyme
61 +# NOTIFYCMD /usr/sbin/upssched
63 # --------------------------------------------------------------------------
66 # IGNORE - Don't do anything
68 # If you use IGNORE, don't use any other flags on the same line.
69 +# ==========================================================================
71 +# NOTIFYFLAG ONLINE SYSLOG+EXEC
72 +# NOTIFYFLAG ONBATT SYSLOG+EXEC
73 +# NOTIFYFLAG COMMOK SYSLOG+EXEC
74 +# NOTIFYFLAG COMMBAD SYSLOG+EXEC
76 # --------------------------------------------------------------------------
77 # RBWARNTIME - replace battery warning time in seconds
78 --- nut-2.2.0/clients/upssched-cmd.orig 2007-07-26 11:21:16.595839465 +0000
79 +++ nut-2.2.0/clients/upssched-cmd 2007-07-26 11:23:45.573112047 +0000
82 logger -t upssched-cmd "The UPS has been gone for awhile"
85 +# logger -t upssched-cmd "The UPS is being shutdown by the master"
86 +# /usr/sbin/upsmon -c fsd
89 logger -t upssched-cmd "Unrecognized command: $1"