]> git.pld-linux.org Git - packages/nut.git/blob - nut-config.patch
- updated to 2.6.3
[packages/nut.git] / nut-config.patch
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
4 @@ -27,7 +27,7 @@
5  #
6  # This user should not have write access to upsmon.conf.
7  #
8 -# RUN_AS_USER nutmon
9 +# RUN_AS_USER ups
10  
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.in      2004-10-26 11:50:23.295419816 +0200
16 @@ -14,7 +14,7 @@
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.
19  
20 -CMDSCRIPT @BINDIR@/upssched-cmd
21 +CMDSCRIPT /usr/sbin/upssched-cmd
22  
23  # ============================================================================
24  #
25 @@ -41,7 +41,7 @@
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.
28  #
29 -# PIPEFN @STATEPATH@/upssched/upssched.pipe
30 +# PIPEFN /var/lib/ups/upssched.pipe
31  
32  # ============================================================================
33  #
34 @@ -56,7 +56,7 @@
35  #
36  # You should put this in the same directory as PIPEFN.
37  #
38 -# LOCKFN @STATEPATH@/upssched/upssched.lock
39 +# LOCKFN /var/lib/ups/upssched.lock
40  
41  # ============================================================================
42  #
43 @@ -111,3 +111,10 @@
44  #   'ups-back-on-line' via CMDSCRIPT.
45  #
46  #   AT ONLINE * EXECUTE ups-back-on-line
47 +# 
48 +# ============================================================================
49 +#
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
56 @@ -126,7 +126,7 @@
57  # information and ideas, see pager.txt in the docs directory.
58  #
59  # Example:
60 -# NOTIFYCMD /usr/local/ups/bin/notifyme
61 +# NOTIFYCMD /usr/sbin/upssched
62  
63  # --------------------------------------------------------------------------
64  # POLLFREQ <n> 
65 @@ -241,6 +241,12 @@
66  # IGNORE - Don't do anything
67  #
68  # If you use IGNORE, don't use any other flags on the same line.
69 +# ==========================================================================
70 +#
71 +# NOTIFYFLAG ONLINE SYSLOG+EXEC
72 +# NOTIFYFLAG ONBATT SYSLOG+EXEC
73 +# NOTIFYFLAG COMMOK SYSLOG+EXEC
74 +# NOTIFYFLAG COMMBAD SYSLOG+EXEC
75  
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
80 @@ -14,6 +14,10 @@
81         upsgone)
82                 logger -t upssched-cmd "The UPS has been gone for awhile"
83                 ;;
84 +#      EarlyShutdown)
85 +#              logger -t upssched-cmd "The UPS is being shutdown by the master"
86 +#              /usr/sbin/upsmon -c fsd
87 +#              ;;
88         *)
89                 logger -t upssched-cmd "Unrecognized command: $1"
90                 ;;
This page took 0.042536 seconds and 3 git commands to generate.