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

« back to all changes in this revision

Viewing changes to docs/shutdown.txt

  • 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:
1
1
Desc: Configuring automatic UPS shutdowns
2
2
File: shutdown.txt
3
 
Date: 14 July 2003
 
3
Date: 24 August 2003
4
4
Auth: Russell Kroll <rkroll@exploits.org>
5
5
 
6
6
Shutdown design
70
70
 
71
71
   if (test -f /etc/killpower)
72
72
   then
73
 
      echo "Killing the power, bye!"
74
 
      /usr/local/ups/bin/upsdrvctl shutdown
 
73
        echo "Killing the power, bye!"
 
74
        /usr/local/ups/bin/upsdrvctl shutdown
 
75
 
 
76
        sleep 120
 
77
 
 
78
        # uh oh... the UPS poweroff failed!
 
79
        # you probably should reboot here to avoid getting stuck
 
80
        # *** see the section on power races below ***
75
81
   fi
76
82
 
77
83
   Make sure the filesystem containing upsdrvctl, ups.conf and your UPS