]>
Commit | Line | Data |
---|---|---|
e2760358 MK |
1 | diff -Nuard nut-2.0.1.orig/conf/upssched.conf nut-2.0.1/conf/upssched.conf |
2 | --- nut-2.0.1.orig/conf/upssched.conf 2004-10-26 11:50:12.410074640 +0200 | |
af19cdfd | 3 | +++ nut-2.0.1/conf/upssched.conf.sample.in 2004-10-26 11:50:23.295419816 +0200 |
e2760358 MK |
4 | @@ -14,7 +14,7 @@ |
5 | # A shell script with a big case..esac construct should work nicely for this. | |
6 | # An example has been provided to help you get started. | |
7 | ||
da001d3c | 8 | -CMDSCRIPT @BINDIR@/upssched-cmd |
e2760358 MK |
9 | +CMDSCRIPT /usr/sbin/upssched-cmd |
10 | ||
11 | # ============================================================================ | |
12 | # | |
5d701b39 SS |
13 | @@ -41,7 +41,7 @@ |
14 | # This is commented out by default to make you visit this file and think | |
15 | # about how your system works before potentially opening a hole. | |
16 | # | |
af19cdfd | 17 | -# PIPEFN @STATEPATH@/upssched/upssched.pipe |
5d701b39 SS |
18 | +# PIPEFN /var/lib/ups/upssched.pipe |
19 | ||
20 | # ============================================================================ | |
21 | # | |
22 | @@ -56,7 +56,7 @@ | |
23 | # | |
24 | # You should put this in the same directory as PIPEFN. | |
25 | # | |
af19cdfd | 26 | -# LOCKFN @STATEPATH@/upssched/upssched.lock |
5d701b39 SS |
27 | +# LOCKFN /var/lib/ups/upssched.lock |
28 | ||
29 | # ============================================================================ | |
30 | # | |
31 | @@ -111,3 +111,10 @@ | |
32 | # 'ups-back-on-line' via CMDSCRIPT. | |
33 | # | |
34 | # AT ONLINE * EXECUTE ups-back-on-line | |
35 | +# | |
36 | +# ============================================================================ | |
37 | +# | |
38 | +# AT ONBATT * START-TIMER EarlyShutdown 30 | |
39 | +# AT ONLINE * CANCEL-TIMER EarlyShutdown | |
40 | +# AT COMMBAD * START-TIMER upsgone 10 | |
41 | +# AT COMMOK * CANCEL-TIMER upsgone | |
42 | --- nut-2.2.0/conf/upsmon.conf.sample.orig 2007-07-26 11:15:08.152047877 +0000 | |
8cf75cf6 | 43 | +++ nut-2.2.0/conf/upsmon.conf.sample.in 2007-07-26 11:17:20.131913520 +0000 |
5d701b39 SS |
44 | @@ -126,7 +126,7 @@ |
45 | # information and ideas, see pager.txt in the docs directory. | |
46 | # | |
47 | # Example: | |
8cf75cf6 | 48 | -# NOTIFYCMD @BINDIR@/notifyme |
5d701b39 SS |
49 | +# NOTIFYCMD /usr/sbin/upssched |
50 | ||
51 | # -------------------------------------------------------------------------- | |
52 | # POLLFREQ <n> | |
53 | @@ -241,6 +241,12 @@ | |
54 | # IGNORE - Don't do anything | |
55 | # | |
56 | # If you use IGNORE, don't use any other flags on the same line. | |
57 | +# ========================================================================== | |
58 | +# | |
59 | +# NOTIFYFLAG ONLINE SYSLOG+EXEC | |
60 | +# NOTIFYFLAG ONBATT SYSLOG+EXEC | |
61 | +# NOTIFYFLAG COMMOK SYSLOG+EXEC | |
62 | +# NOTIFYFLAG COMMBAD SYSLOG+EXEC | |
63 | ||
64 | # -------------------------------------------------------------------------- | |
65 | # RBWARNTIME - replace battery warning time in seconds | |
66 | --- nut-2.2.0/clients/upssched-cmd.orig 2007-07-26 11:21:16.595839465 +0000 | |
67 | +++ nut-2.2.0/clients/upssched-cmd 2007-07-26 11:23:45.573112047 +0000 | |
68 | @@ -14,6 +14,10 @@ | |
69 | upsgone) | |
70 | logger -t upssched-cmd "The UPS has been gone for awhile" | |
71 | ;; | |
72 | +# EarlyShutdown) | |
73 | +# logger -t upssched-cmd "The UPS is being shutdown by the master" | |
74 | +# /usr/sbin/upsmon -c fsd | |
75 | +# ;; | |
76 | *) | |
77 | logger -t upssched-cmd "Unrecognized command: $1" | |
78 | ;; |