SHARE
TWEET

pwrstatd.conf

a guest Jun 25th, 2011 987 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #
  2. # pwrstatd configuration file
  3. #
  4.  
  5. #
  6. # Action setting for event of Power Failure
  7. #
  8.  
  9. # A delay time in seconds since event of Power Failure occur then to run shell
  10. # script and shutdown system. Allowed range is 0 ~ 3600. Default is 60 sec.
  11. powerfail-delay = 0
  12.  
  13. # Enable to run shell script when the event of Power Failure occur.
  14. # The allowed options are yes and no. Default is yes.
  15. powerfail-active = yes
  16.  
  17. # Assign a path of script file for event of Power Failure.
  18. # The default is /etc/pwrstatd-powerfail.sh
  19. powerfail-cmd-path = /etc/pwrstatd-powerfail.sh
  20.  
  21. # How much time in seconds to take script running for event of Power Failure.
  22. # The allowed range is 0 ~ 3600. Default is 0 sec.
  23. powerfail-duration = 0
  24.  
  25. # Allow Daemon to shutdown system for event of Power Failure.
  26. # The allowed options are yes and no. Default is yes.
  27. powerfail-shutdown = no
  28.  
  29. #
  30. # Action setting for event of Battery Low
  31. #
  32.  
  33. # A delay time in seconds since event of Battery Low occur then to run shell
  34. # script and shutdown system. Allowed range is 0 ~ 60. Default is 5 sec.
  35. lowbatt-delay = 5
  36.  
  37. # Enable to run shell script when the event of Battery Low occur.
  38. # The allowed options are yes and no. Default is yes.
  39. lowbatt-active = yes
  40.  
  41. # Assign a path of script file for event of Battery Low.
  42. # The default is /etc/pwrstatd-lowbatt.sh
  43. lowbatt-cmd-path = /etc/pwrstatd-lowbatt.sh
  44.  
  45. # How much time in seconds to take script running for event of Battery Low.
  46. # The allowed range is 0 ~ 60. Default is 0 sec.
  47. lowbatt-duration = 0
  48.  
  49. # Allow Daemon to shutdown system for event of Battery Low.
  50. # The allowed options are yes and no. Default is yes.
  51. lowbatt-shutdown = yes
  52.  
  53. # Turn UPS alarm on or off.
  54. # The allowed options are yes and no. Default is yes.
  55. enable-alarm = yes
  56.  
  57. # The necessary time in seconds for system shutdown.
  58. # The UPS will turn power off when this time is expired.
  59. # The allowed range is 0 ~ 3600. Default is 600 sec.(10 min.)
  60. shutdown-sustain = 60
  61.  
  62. # Daemon will turn UPS power off once it ask system shutdown cause by a power
  63. # event. Allowed options are yes and no. Default is yes.
  64. turn-ups-off = yes
  65.  
  66. # A threshold of Battery Capacity, If the battery capacity is lower then this
  67. # value and a event of Battery Low will be dentified. The unit is percentage.
  68. # The allowed range is 0 ~ 90. Default is 35 %.
  69. lowbatt-threshold = 15
  70.  
  71. # The period of polling UPS in seconds.
  72. # The allowed range is 1 ~ 60. Default is 3 sec.
  73. ups-polling-rate = 3
  74.  
  75. # the period of re-try to find available UPS in seconds since find nothing at
  76. # last time. The allowed range is 1 ~ 300. Default is 10 sec.
  77. ups-retry-rate = 10
  78.  
  79. # Prohibiting daemon to provide communication mechanism for client, such as
  80. # pwrstat command. normally, it should be 'no'. It can be 'yes' if any security
  81. # consideration. Allowed options are yes and no. Default is no.
  82. prohibit-client-access = no
  83.  
  84. # The pwrstatd accepts four types of device node which includes the 'ttyS',
  85. # 'ttyUSB', 'hiddev', and 'libusb' for communication with UPS. The pwrstatd
  86. # defaults to enumerate all acceptable device nodes and pick up to use an
  87. # available device node automatically. But this may cause a disturbance to the
  88. # device node which is occupied by other software. Therefore, you can restrict
  89. # this enumerate behave by using allowed-device-nodes option. You can assign
  90. # the single device node path or multiple device node paths divided by a
  91. # semicolon at this option. All groups of 'ttyS', 'ttyUSB', 'hiddev', or
  92. # 'libusb' device node are enumerated without a suffix number assignment.
  93. # Note, the 'libusb' does not support suffix number only.
  94. #
  95. # For example: restrict to use ttyS1, ttyS2 and hiddev1 device nodes at /dev
  96. # path only.
  97. # allowed-device-nodes = /dev/ttyS1;/dev/ttyS2;/dev/hiddev1
  98. #
  99. # For example: restrict to use ttyS and ttyUSB two groups of device node at
  100. # /dev,/dev/usb, and /dev/usb/hid paths(includes ttyS0 to ttySN and ttyUSB0 to
  101. # ttyUSBN, N is number).
  102. # allowed-device-nodes = ttyS;ttyUSB
  103. #
  104. # For example: restrict to use hiddev group of device node at /dev,/dev/usb,
  105. # and /dev/usb/hid paths(includes hiddev0 to hiddevN, N is number).
  106. # allowed-device-nodes = hiddev
  107. #
  108. # For example: restrict to use libusb device.
  109. # allowed-device-nodes = libusb
  110. allowed-device-nodes =
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top