~ubuntu-branches/ubuntu/saucy/nut/saucy

« back to all changes in this revision

Viewing changes to man/upssched.8

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2005-07-20 19:48:50 UTC
  • mto: (16.1.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20050720194850-oo61wjr33rrx2mre
Tags: upstream-2.0.2
ImportĀ upstreamĀ versionĀ 2.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
 
51
51
To shut down the system early, define a timer that starts due to an ONBATT
52
52
condition.  When it triggers, make your CMDSCRIPT call your shutdown
53
 
routine.  It should finish by calling "upsmon -c fsd" so that upsmon gets
 
53
routine.  It should finish by calling "upsmon \-c fsd" so that upsmon gets
54
54
to shut down the slaves in a controlled manner.
55
55
 
56
56
Be sure you cancel the timer if power returns (ONLINE).
86
86
This means that you will only see upssched running when one of two things
87
87
is happening:
88
88
 
89
 
- There's a timer of some sort currently running 
 
89
\(hy There's a timer of some sort currently running 
90
90
 
91
 
- upsmon just called it, and you managed to catch the brief instance
 
91
\(hy upsmon just called it, and you managed to catch the brief instance
92
92
 
93
93
The final optimization handles the possibility of trying to cancel a timer
94
94
when there are none running.  If the timer daemon isn't running, there
95
95
are no timers to cancel, and furthermore there is no need to start
96
 
a clock-watcher.  So, it skips that step and exits sooner.
 
96
a clock\(hywatcher.  So, it skips that step and exits sooner.
97
97
 
98
98
.SH FILES
99
99
\fBupssched.conf\fR(5)